From a1f682a211c3a073143d4ece7a2ea915a5ff089b Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 11 Nov 2006 12:05:34 +0000 Subject: Yay, comma seperated /kill, same limits as PRIVMSG etc. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5683 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_kill.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/cmd_kill.cpp b/src/cmd_kill.cpp index 6f42c1b38..fb5dba245 100644 --- a/src/cmd_kill.cpp +++ b/src/cmd_kill.cpp @@ -14,9 +14,11 @@ * --------------------------------------------------- */ +#include "inspircd.h" #include "configreader.h" #include "users.h" #include "modules.h" +#include "wildcard.h" #include "commands/cmd_kill.h" extern "C" command_t* init_command(InspIRCd* Instance) @@ -28,6 +30,10 @@ extern "C" command_t* init_command(InspIRCd* Instance) */ CmdResult cmd_kill::Handle (const char** parameters, int pcnt, userrec *user) { + /* Allow comma seperated lists of users for /KILL (thanks w00t) */ + if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0)) + return CMD_SUCCESS; + userrec *u = ServerInstance->FindNick(parameters[0]); char killreason[MAXBUF]; int MOD_RESULT = 0; -- cgit v1.2.3