]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ident.cpp
Make ident handling consistant: use ChangeIdent for all ident manipulation. This...
[user/henk/code/inspircd.git] / src / modules / m_ident.cpp
index 71767e554866d88e4cd99f4893bb24a44f2bfa9e..d5ca208365312495cff8af9e6e4864729034cafa 100644 (file)
@@ -452,9 +452,7 @@ class ModuleIdent : public Module
                        user->WriteServ("NOTICE Auth :*** Could not find your ident, using %s instead.", isock->GetResult());
 
                /* Copy the ident string to the user */
-               std::string ident;
-               ident.assign(isock->GetResult(), 0, ServerInstance->Config->Limits.IdentMax + 1);
-               user->ChangeIdent(ident.c_str());
+               user->ChangeIdent(isock->GetResult());
 
                /* The user isnt actually disconnecting, we call this to clean up the user */
                OnUserDisconnect(user);