1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-13 02:10:27 +00:00

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

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) {