]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Move the IRC_SetPenalty() call after the asserts
authorFederico G. Schwindt <fgsch@lodoss.net>
Thu, 5 Sep 2013 12:07:19 +0000 (13:07 +0100)
committerFederico G. Schwindt <fgsch@lodoss.net>
Thu, 5 Sep 2013 16:31:57 +0000 (17:31 +0100)
src/ngircd/irc-info.c

index 6013fa0c1bff4a6640a096a7fbb729c16fcbb335..ea0ed4e58e481e5503a99510341648276be9b940 100644 (file)
@@ -718,11 +718,11 @@ IRC_SERVLIST(CLIENT *Client, REQUEST *Req)
 {
        CLIENT *c;
 
 {
        CLIENT *c;
 
-       IRC_SetPenalty(Client, 1);
-
        assert(Client != NULL);
        assert(Req != NULL);
 
        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) {
        _IRC_ARGC_LE_OR_RETURN_(Client, Req, 2)
 
        if (Req->argc < 2 || strcmp(Req->argv[1], "0") == 0) {