]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_nick.cpp
Stop recreating hashmaps every hour, move garbage collection code related to local...
[user/henk/code/inspircd.git] / src / commands / cmd_nick.cpp
index 5e600ad1ce676581c41c6f906772488b8ad90b88..4c26d947fb223262c242de3ac80b5ee78fb1cfa3 100644 (file)
@@ -21,7 +21,6 @@
 
 
 #include "inspircd.h"
-#include "xline.h"
 
 /** Handle /NICK. These command handlers can be reloaded by the core,
  * and handle basic RFC1459 commands. Commands within modules work
@@ -67,7 +66,7 @@ CmdResult CommandNick::Handle (const std::vector<std::string>& parameters, User
        {
                newnick = user->uuid;
        }
-       else if (!ServerInstance->IsNick(newnick.c_str(), ServerInstance->Config->Limits.NickMax))
+       else if (!ServerInstance->IsNick(newnick, ServerInstance->Config->Limits.NickMax))
        {
                user->WriteNumeric(432, "%s %s :Erroneous Nickname", user->nick.c_str(),newnick.c_str());
                return CMD_FAILURE;