diff options
-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; |