summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_part.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/commands/cmd_part.cpp b/src/commands/cmd_part.cpp
index 352b967b5..dcc50609b 100644
--- a/src/commands/cmd_part.cpp
+++ b/src/commands/cmd_part.cpp
@@ -47,8 +47,7 @@ CmdResult CommandPart::Handle (const std::vector<std::string>& parameters, User
if (c)
{
- const char *rreason = reason.empty() ? NULL : reason.c_str();
- if (!c->PartUser(user, rreason))
+ if (!c->PartUser(user, reason))
/* Arse, who stole our channel! :/ */
delete c;
}