summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-14 20:43:46 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-08-14 20:43:46 +0000
commit0740e2b8e5d619bb3babbd143e99d8a77a9062ec (patch)
tree5848ea61d783baf52ed96b23f420a87ed4ba92d0 /src/modules/m_ident.cpp
parentff02ab2e930c25755d211d25ad809ff234363214 (diff)
Make ident handling consistant: use ChangeIdent for all ident manipulation. This fixes cache bugs properly.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11518 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 71767e554..d5ca20836 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -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);