summaryrefslogtreecommitdiff
path: root/src/modules/m_setident.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_setident.cpp')
-rw-r--r--src/modules/m_setident.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_setident.cpp b/src/modules/m_setident.cpp
index c3b24aeb4..dead4a393 100644
--- a/src/modules/m_setident.cpp
+++ b/src/modules/m_setident.cpp
@@ -27,9 +27,9 @@ class cmd_setident : public command_t
user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick);
return CMD_FAILURE;
}
-
- ServerInstance->WriteOpers("%s used SETIDENT to change their ident from '%s' to '%s'", user->nick, user->ident, parameters[0]);
+
user->ChangeIdent(parameters[0]);
+ ServerInstance->WriteOpers("%s used SETIDENT to change their ident to '%s'", user->nick, user->ident);
return CMD_SUCCESS;
}