X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_part.cpp;h=54fd1321667c7eec4552b3e259340bec4d66d8a5;hb=436fad2bf0fb122470a47a1453fa24b446104a8f;hp=352b967b59b6e7a8aa0839f68b31186dd4458272;hpb=4b856bda135a08e800b96c970a10b0b6a34d433a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_part.cpp b/src/commands/cmd_part.cpp index 352b967b5..54fd13216 100644 --- a/src/commands/cmd_part.cpp +++ b/src/commands/cmd_part.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2008 InspIRCd Development Team + * InspIRCd: (C) 2002-2009 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -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; }