View Issue Details

IDProjectCategoryView StatusLast Update
0001735unrealircdpublic2004-04-16 18:55
Reporterfez Assigned To 
PrioritynormalSeveritytrivialReproducibilityalways
Status closedResolutionopen 
Product Version3.2-RC2 
Summary0001735: module parameters for commands like /sajoin
Descriptionwell i was looking through the source and noticed,..
src/modules/m_sajoin.c, line 100
        if (parc != 3)
should really be
        if (parc < 3)

as it stands, if you do something like
/sajoin fez #test someparam
you get the error message:
not enough parameters....
Which isn't really what the error is......

so,... either you should make it ignore the extra params, or give an error like "too many params"....

obviously this is a trivial "bug" (if you even would call it that)

 -- fez
3rd party modules

Activities

fez

2004-04-15 02:55

reporter   ~0005862

also this quite possibly exists in other commands.........

AngryWolf

2004-04-15 12:37

reporter   ~0005867

If helps:

[angrywolf@localhost Unreal]$ grep -R 'parc[[:space:]]\+!=' .
./src/modules/m_sajoin.c: if (parc != 3)
./src/modules/m_sapart.c: if (parc != 3)
./src/modules/m_svsjoin.c: if (parc != 3 || !(acptr = find_person(parv[1], NULL)))
./src/modules/m_svspart.c: if (parc != 3 || !(acptr = find_person(parv[1], NULL))) return 0;

That's all I could find.

syzop

2004-04-16 18:55

administrator   ~0005873

"Fixed" (sajoin, sapart)

Issue History

Date Modified Username Field Change
2004-04-15 02:54 fez New Issue
2004-04-15 02:55 fez Note Added: 0005862
2004-04-15 12:37 AngryWolf Note Added: 0005867
2004-04-16 18:55 syzop Status new => closed
2004-04-16 18:55 syzop Note Added: 0005873