[IRCServices Coding] svc5 exception move
v13 at priest.com
v13 at priest.com
Sat Dec 22 10:42:29 PST 2001
in operserv/sessions.c, do_exception_move():
char *n1str = strtok(NULL, " "); /* From index */
char *n2str = strtok(NULL, " "); /* To index */
int n1, n2;
if (!n2str) {
syntax_error(s_OperServ, u, "EXCEPTION", OPER_EXCEPTION_MOVE_SYNTAX);
return;
}
n1 = atoi(n1str) - 1;
n2 = atoi(n2str) - 1;
>>> if (n1 == n2 || n1 <= 0 || n2 <= 0) { <<< HERE <<<<<<<<<<<<<<<<<<<<
syntax_error(s_OperServ, u, "EXCEPTION", OPER_EXCEPTION_MOVE_SYNTAX);
return;
}
I believe the noted line should not have <=
When trying to move exception #1 it fails and, when there are 3 exceptions:
/os exception move 4 3
gives:
-OperServ- Exception for *.hell.gr (#3) moved to number 2.
exception move also doesn't seem to work at all.
(tested under alpha7, but alpha8 hasn't change this)
<<V13>>