diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:37:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-09 15:37:31 +0000 |
commit | ae24657214e69d6f77407c5cfaa0095da7b6d7c1 (patch) | |
tree | def075fa78e3144a88fc7ae953fecd2fb014ce00 /src/modules | |
parent | 91fdf6fdb7a65508f4d7eb61ce0b478d2aff29f3 (diff) |
Ensure that these output the sane value thats actually set, not the possibly insane one you TRIED to set
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5186 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_chghost.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_chgident.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_sethost.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_setident.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index 2e8c615db..18853ac2d 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -63,7 +63,7 @@ class cmd_chghost : public command_t if ((dest->ChangeDisplayedHost(parameters[1])) && (!ServerInstance->ULine(user->server))) { // fix by brain - ulines set hosts silently - ServerInstance->WriteOpers(std::string(user->nick)+" used CHGHOST to make the displayed host of "+dest->nick+" become "+parameters[1]); + ServerInstance->WriteOpers(std::string(user->nick)+" used CHGHOST to make the displayed host of "+dest->nick+" become "+dest->dhost); } return CMD_SUCCESS; } diff --git a/src/modules/m_chgident.cpp b/src/modules/m_chgident.cpp index 1c9e3f6f4..ec136ebdb 100644 --- a/src/modules/m_chgident.cpp +++ b/src/modules/m_chgident.cpp @@ -28,9 +28,9 @@ class cmd_chgident : public command_t user->WriteServ("NOTICE %s :*** Invalid characters in ident", user->nick); return CMD_FAILURE; } - - ServerInstance->WriteOpers("%s used CHGIDENT to change %s's ident from '%s' to '%s'", user->nick, dest->nick, dest->ident, parameters[1]); + dest->ChangeIdent(parameters[1]); + ServerInstance->WriteOpers("%s used CHGIDENT to change %s's ident to '%s'", user->nick, dest->nick, dest->ident); return CMD_SUCCESS; } else diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 296c0788a..fb3d68529 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -58,7 +58,7 @@ class cmd_sethost : public command_t } if (user->ChangeDisplayedHost(parameters[0])) { - ServerInstance->WriteOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+std::string(parameters[0])); + ServerInstance->WriteOpers(std::string(user->nick)+" used SETHOST to change their displayed host to "+user->dhost); return CMD_SUCCESS; } 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; } |