summaryrefslogtreecommitdiff
path: root/src/commands/cmd_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_part.cpp')
-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))