]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_part.cpp
We were lucky this one didnt bring down the whole devnet (see cmd_part.cpp diff)
[user/henk/code/inspircd.git] / src / commands / cmd_part.cpp
index 002ae722b6a3a4c80c9fc325cab1fa45b9a05a10..360287c45eca277bc0693d496c57f75163ab6f9d 100644 (file)
@@ -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))