/*
* 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
* Handler for IRC capability ("CAP") commands
*/
-#include "imp.h"
#include <assert.h>
#include <string.h>
+#include <strings.h>
-#include "defines.h"
#include "conn.h"
#include "channel.h"
#include "client-cap.h"
#include "messages.h"
#include "parse.h"
-#include "exp.h"
#include "irc-cap.h"
/* Local functions */
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));
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]);
}