commit - e8f512bfe70a6c620e09aa221fb7058dc2c6687e
commit + a53de63ba7fcb4144f4fcc2db221556177528900
blob - 52abcec9559679317f728098d16c52a8d2cd5c2f
blob + 74c732271203ac0a49db6b9dde05b30dd1551dfc
--- src/ngircd/irc-cap.c
+++ src/ngircd/irc-cap.c
#include "conn.h"
#include "channel.h"
#include "client-cap.h"
+#include "irc-macros.h"
#include "irc-write.h"
#include "log.h"
#include "login.h"
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));