From 18310fc8b7dbb0dcda3f0fa10d2b37e2b1457c10 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 7 Apr 2008 16:18:32 +0000 Subject: 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 --- src/commands/cmd_part.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_part.cpp') 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)) -- cgit v1.3.1-10-gc9f91