summaryrefslogtreecommitdiff
path: root/src/modules/m_ident.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r--src/modules/m_ident.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 24e27d560..71767e554 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -452,7 +452,9 @@ 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 */
- user->ident.assign(isock->GetResult(), 0, ServerInstance->Config->Limits.IdentMax + 1);
+ std::string ident;
+ ident.assign(isock->GetResult(), 0, ServerInstance->Config->Limits.IdentMax + 1);
+ user->ChangeIdent(ident.c_str());
/* The user isnt actually disconnecting, we call this to clean up the user */
OnUserDisconnect(user);