diff options
| author | Federico G. Schwindt <fgsch@lodoss.net> | 2013-09-05 13:07:19 +0100 |
|---|---|---|
| committer | Federico G. Schwindt <fgsch@lodoss.net> | 2013-09-05 17:31:57 +0100 |
| commit | 33c2d5e4e255f314d5d7136d8edeb662128bd79a (patch) | |
| tree | 9320a7c56e53c4333cca210a93937dc5f2eee42d /src | |
| parent | a98bbc8e0b937f4fedf7ad852eaf109c6a9c5b8f (diff) | |
| download | ngircd-33c2d5e4e255f314d5d7136d8edeb662128bd79a.tar.gz ngircd-33c2d5e4e255f314d5d7136d8edeb662128bd79a.zip | |
Move the IRC_SetPenalty() call after the asserts
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index 6013fa0c..ea0ed4e5 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -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) { |