summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_chghost.cpp2
-rw-r--r--src/modules/m_chgident.cpp4
-rw-r--r--src/modules/m_sethost.cpp2
-rw-r--r--src/modules/m_setident.cpp4
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;
}