X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc-cap.c;h=bf4c9cd0c42a84a6e49ccb7e0c045ebc43034b6f;hp=52abcec9559679317f728098d16c52a8d2cd5c2f;hb=f547981188a28844068e864dc1ed955ff173d216;hpb=bb31d7b88cd11ceec65aed08a99ac9a2270ce3ef diff --git a/src/ngircd/irc-cap.c b/src/ngircd/irc-cap.c index 52abcec9..bf4c9cd0 100644 --- a/src/ngircd/irc-cap.c +++ b/src/ngircd/irc-cap.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2013 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -16,11 +16,10 @@ * Handler for IRC capability ("CAP") commands */ -#include "imp.h" #include #include +#include -#include "defines.h" #include "conn.h" #include "channel.h" #include "client-cap.h" @@ -30,7 +29,6 @@ #include "messages.h" #include "parse.h" -#include "exp.h" #include "irc-cap.h" /* Local functions */ @@ -249,11 +247,6 @@ 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); - LogDebug("Got \"%s %s\" command from \"%s\" ...", Req->command, Req->argv[0], Client_ID(Client)); @@ -276,7 +269,7 @@ IRC_CAP(CLIENT *Client, REQUEST *Req) return Handle_CAP_ACK(Client, Req->argv[1]); } - return IRC_WriteStrClient(Client, ERR_INVALIDCAP_MSG, + return IRC_WriteErrClient(Client, ERR_INVALIDCAP_MSG, Client_ID(Client), Req->argv[0]); }