Move the IRC_SetPenalty() call after the asserts
This commit is contained in:
parent
a98bbc8e0b
commit
33c2d5e4e2
|
@ -718,11 +718,11 @@ IRC_SERVLIST(CLIENT *Client, REQUEST *Req)
|
||||||
{
|
{
|
||||||
CLIENT *c;
|
CLIENT *c;
|
||||||
|
|
||||||
IRC_SetPenalty(Client, 1);
|
|
||||||
|
|
||||||
assert(Client != NULL);
|
assert(Client != NULL);
|
||||||
assert(Req != NULL);
|
assert(Req != NULL);
|
||||||
|
|
||||||
|
IRC_SetPenalty(Client, 1);
|
||||||
|
|
||||||
_IRC_ARGC_LE_OR_RETURN_(Client, Req, 2)
|
_IRC_ARGC_LE_OR_RETURN_(Client, Req, 2)
|
||||||
|
|
||||||
if (Req->argc < 2 || strcmp(Req->argv[1], "0") == 0) {
|
if (Req->argc < 2 || strcmp(Req->argv[1], "0") == 0) {
|
||||||
|
|
Loading…
Reference in New Issue