summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 10:07:55 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2008-05-05 10:07:55 +0000
commitbc4828bbbde8a596b80b8f1d2c7349551f0f43b8 (patch)
tree6a7a618242e597169fd4aebb0d7debeb4b4a4254 /src
parent287e4973e009755c771add3e3995392b1612c425 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/commands/cmd_kick.cpp2
-rw-r--r--src/commands/cmd_kill.cpp2
-rw-r--r--src/commands/cmd_whois.cpp2
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<std::string>& 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<std::string>& 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<std::string>& 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;