summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 16:18:32 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-07 16:18:32 +0000
commit18310fc8b7dbb0dcda3f0fa10d2b37e2b1457c10 (patch)
treea1129d1cff5ff02d2b4f16dd539f836ca0d66f05 /src/commands
parentc1c6d3f447185e3b4e90d0bfe379dddcd78253a5 (diff)
We were lucky this one didnt bring down the whole devnet (see cmd_part.cpp diff)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9400 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_part.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_part.cpp b/src/commands/cmd_part.cpp
index 002ae722b..360287c45 100644
--- a/src/commands/cmd_part.cpp
+++ b/src/commands/cmd_part.cpp
@@ -37,7 +37,7 @@ CmdResult CommandPart::Handle (const char* const* parameters, int pcnt, User *us
}
else
{
- reason = pcnt ? parameters[1] : "";
+ reason = pcnt > 1 ? parameters[1] : "";
}
if (ServerInstance->Parser->LoopCall(user, this, parameters, pcnt, 0))