diff options
| author | Alexander Barton <alex@barton.de> | 2013-02-24 18:51:43 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-02-24 18:51:43 +0100 |
| commit | a53de63ba7fcb4144f4fcc2db221556177528900 (patch) | |
| tree | 27bd38df59d6b72e4c19c37e7a8d8a9daf5b1209 /src | |
| parent | e8f512bfe70a6c620e09aa221fb7058dc2c6687e (diff) | |
| download | ngircd-a53de63ba7fcb4144f4fcc2db221556177528900.tar.gz ngircd-a53de63ba7fcb4144f4fcc2db221556177528900.zip | |
irc-cap.c: use irc-macros.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-cap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ngircd/irc-cap.c b/src/ngircd/irc-cap.c index 52abcec9..74c73227 100644 --- a/src/ngircd/irc-cap.c +++ b/src/ngircd/irc-cap.c @@ -24,6 +24,7 @@ #include "conn.h" #include "channel.h" #include "client-cap.h" +#include "irc-macros.h" #include "irc-write.h" #include "log.h" #include "login.h" @@ -249,10 +250,7 @@ IRC_CAP(CLIENT *Client, REQUEST *Req) assert(Client != NULL); assert(Req != NULL); - /* Bad number of prameters? */ - if (Req->argc < 1 || Req->argc > 2) - return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG, - Client_ID(Client), Req->command); + _IRC_ARGC_BETWEEN_OR_RETURN_(Client, Req, 1, 2) LogDebug("Got \"%s %s\" command from \"%s\" ...", Req->command, Req->argv[0], Client_ID(Client)); |