From bc4828bbbde8a596b80b8f1d2c7349551f0f43b8 Mon Sep 17 00:00:00 2001 From: peavey Date: Mon, 5 May 2008 10:07:55 +0000 Subject: fix LoopCalls to not send param count thus avoiding a crash in command parser git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9642 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_kick.cpp | 2 +- src/commands/cmd_kill.cpp | 2 +- src/commands/cmd_whois.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/cmd_kick.cpp b/src/commands/cmd_kick.cpp index e4acbbbf1..99859b413 100644 --- a/src/commands/cmd_kick.cpp +++ b/src/commands/cmd_kick.cpp @@ -27,7 +27,7 @@ CmdResult CommandKick::Handle (const std::vector& parameters, User Channel* c = ServerInstance->FindChan(parameters[0]); User* u = ServerInstance->FindNick(parameters[1]); - if (ServerInstance->Parser->LoopCall(user, this, parameters, parameters.size(), 1)) + if (ServerInstance->Parser->LoopCall(user, this, parameters, 1)) return CMD_SUCCESS; if (!u || !c) diff --git a/src/commands/cmd_kill.cpp b/src/commands/cmd_kill.cpp index 0d95b1cf0..7e77aa5a1 100644 --- a/src/commands/cmd_kill.cpp +++ b/src/commands/cmd_kill.cpp @@ -24,7 +24,7 @@ extern "C" DllExport Command* init_command(InspIRCd* Instance) CmdResult CommandKill::Handle (const std::vector& parameters, User *user) { /* Allow comma seperated lists of users for /KILL (thanks w00t) */ - if (ServerInstance->Parser->LoopCall(user, this, parameters, parameters.size(), 0)) + if (ServerInstance->Parser->LoopCall(user, this, parameters, 0)) return CMD_SUCCESS; User *u = ServerInstance->FindNick(parameters[0]); diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index 263377b8f..d78144348 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -109,7 +109,7 @@ CmdResult CommandWhois::Handle (const std::vector& parameters, User int userindex = 0; unsigned long idle = 0, signon = 0; - if (ServerInstance->Parser->LoopCall(user, this, parameters, parameters.size(), 0)) + if (ServerInstance->Parser->LoopCall(user, this, parameters, 0)) return CMD_SUCCESS; -- cgit v1.2.3