]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_part.cpp
Fix for bug found by danieldg, where remote nicks were truncated to NICKMAX, but...
[user/henk/code/inspircd.git] / src / commands / cmd_part.cpp
index 352b967b59b6e7a8aa0839f68b31186dd4458272..54fd1321667c7eec4552b3e259340bec4d66d8a5 100644 (file)
@@ -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<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;
        }