diff options
Diffstat (limited to 'src/commands/cmd_part.cpp')
-rw-r--r-- | src/commands/cmd_part.cpp | 2 |
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)) |