diff --git a/src/modules/chghost.c b/src/modules/chghost.c index 7a1d64f43..8c9b865ae 100644 --- a/src/modules/chghost.c +++ b/src/modules/chghost.c @@ -135,14 +135,11 @@ CMD_FUNC(cmd_chghost) if (!IsULine(client)) { - sendto_snomask(SNO_EYES, - "%s changed the virtual hostname of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, - target->user->realhost, parv[2]); - /* Logging added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGHOST: %s changed the virtual hostname of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, target->user->realhost, parv[2]); + unreal_log(ULOG_INFO, "chgcmds", "CHGHOST_COMMAND", client, + "CHGHOST: $client changed the virtual hostname of $target.detail to be $new_hostname", + log_data_string("change_type", "hostname"), + log_data_string("new_hostname", parv[2]), + log_data_client("target", target)); } target->umodes |= UMODE_HIDE; diff --git a/src/modules/chgident.c b/src/modules/chgident.c index 3b31d099c..2cacc36bb 100644 --- a/src/modules/chgident.c +++ b/src/modules/chgident.c @@ -134,15 +134,11 @@ CMD_FUNC(cmd_chgident) } if (!IsULine(client)) { - sendto_snomask(SNO_EYES, - "%s changed the virtual ident of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, - GetHost(target), parv[2]); - /* Logging ability added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGIDENT: %s changed the virtual ident of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, - GetHost(target), parv[2]); + unreal_log(ULOG_INFO, "chgcmds", "CHGIDENT_COMMAND", client, + "CHIDENT: $client changed the username of $target.detail to be $new_username", + log_data_string("change_type", "username"), + log_data_string("new_username", parv[2]), + log_data_client("target", target)); } sendto_server(client, 0, 0, NULL, ":%s CHGIDENT %s %s", diff --git a/src/modules/chgname.c b/src/modules/chgname.c index cc32aa722..8933799f9 100644 --- a/src/modules/chgname.c +++ b/src/modules/chgname.c @@ -97,15 +97,11 @@ CMD_FUNC(cmd_chgname) /* Let's log this first */ if (!IsULine(client)) { - sendto_snomask(SNO_EYES, - "%s changed the GECOS of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, - GetHost(target), parv[2]); - /* Logging ability added by XeRXeS */ - ircd_log(LOG_CHGCMDS, - "CHGNAME: %s changed the GECOS of %s (%s@%s) to be %s", - client->name, target->name, target->user->username, - GetHost(target), parv[2]); + unreal_log(ULOG_INFO, "chgcmds", "CHGHOST_COMMAND", client, + "CHGHOST: $client changed the realname of $target.detail to be $new_realname", + log_data_string("change_type", "realname"), + log_data_string("new_realname", parv[2]), + log_data_client("target", target)); } /* set the realname to make ban checking work */