summaryrefslogtreecommitdiff
path: root/src/commands/cmd_kick.cpp
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-03 21:30:15 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-03 21:30:15 +0000
commit86dd9fa5ea02644096f3529a6cbf3a55b5bb1d60 (patch)
treec342206fc0a1c692bd1a8d9c3ac306a190b5e642 /src/commands/cmd_kick.cpp
parentdc7270e12e1bd17b55482126dae2f7c49635f0c5 (diff)
Allow KICKing multiple nicks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9604 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands/cmd_kick.cpp')
-rw-r--r--src/commands/cmd_kick.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands/cmd_kick.cpp b/src/commands/cmd_kick.cpp
index 329a37bcf..9cf4f8b5c 100644
--- a/src/commands/cmd_kick.cpp
+++ b/src/commands/cmd_kick.cpp
@@ -27,6 +27,9 @@ CmdResult CommandKick::Handle (const char* const* parameters, int pcnt, User *us
Channel* c = ServerInstance->FindChan(parameters[0]);
User* u = ServerInstance->FindNick(parameters[1]);
+ if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 1))
+ return CMD_SUCCESS;
+
if (!u || !c)
{
user->WriteServ( "401 %s %s :No such nick/channel", user->nick, u ? parameters[0] : parameters[1]);