1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 04:46:17 +00:00

irc-cap.c: use irc-macros.h

This commit is contained in:
Alexander Barton 2013-02-24 18:51:43 +01:00
parent e8f512bfe7
commit a53de63ba7

View File

@ -24,6 +24,7 @@
#include "conn.h" #include "conn.h"
#include "channel.h" #include "channel.h"
#include "client-cap.h" #include "client-cap.h"
#include "irc-macros.h"
#include "irc-write.h" #include "irc-write.h"
#include "log.h" #include "log.h"
#include "login.h" #include "login.h"
@ -249,10 +250,7 @@ IRC_CAP(CLIENT *Client, REQUEST *Req)
assert(Client != NULL); assert(Client != NULL);
assert(Req != NULL); assert(Req != NULL);
/* Bad number of prameters? */ _IRC_ARGC_BETWEEN_OR_RETURN_(Client, Req, 1, 2)
if (Req->argc < 1 || Req->argc > 2)
return IRC_WriteStrClient(Client, ERR_NEEDMOREPARAMS_MSG,
Client_ID(Client), Req->command);
LogDebug("Got \"%s %s\" command from \"%s\" ...", LogDebug("Got \"%s %s\" command from \"%s\" ...",
Req->command, Req->argv[0], Client_ID(Client)); Req->command, Req->argv[0], Client_ID(Client));