mirror of
https://github.com/osmarks/ngircd.git
synced 2025-11-09 18:23:01 +00:00
Move the IRC_SetPenalty() call after the asserts
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user