From 0b070b52bc8e8ceb52388e45cea90f4add119c4f Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 11 Jul 2008 21:15:02 +0000 Subject: Convert API to use std::string, fixes my slight bug from earlier and looks tidier git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9956 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_part.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/commands/cmd_part.cpp') 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& 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; } -- cgit v1.2.3