diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 12:05:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-11 12:05:34 +0000 |
commit | a1f682a211c3a073143d4ece7a2ea915a5ff089b (patch) | |
tree | 4bbc436212b4fb45821986be01e6ed6fc255b795 /src/cmd_kill.cpp | |
parent | 13e2425731cf7e7d00d6ab6d704cb501540c9b95 (diff) |
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
Diffstat (limited to 'src/cmd_kill.cpp')
-rw-r--r-- | src/cmd_kill.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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; |