Move the IRC_SetPenalty() call after the asserts

This commit is contained in:
Federico G. Schwindt 2013-09-05 13:07:19 +01:00
parent a98bbc8e0b
commit 33c2d5e4e2
1 changed files with 2 additions and 2 deletions

View File

@ -718,11 +718,11 @@ IRC_SERVLIST(CLIENT *Client, REQUEST *Req)
{
CLIENT *c;
IRC_SetPenalty(Client, 1);
assert(Client != NULL);
assert(Req != NULL);
IRC_SetPenalty(Client, 1);
_IRC_ARGC_LE_OR_RETURN_(Client, Req, 2)
if (Req->argc < 2 || strcmp(Req->argv[1], "0") == 0) {