From f3db0d597141b45d36d60a370a3a9be6ed76a360 Mon Sep 17 00:00:00 2001 From: Valerie Pond <79415174+ValwareIRC@users.noreply.github.com> Date: Mon, 1 Nov 2021 06:09:49 +0000 Subject: [PATCH] Correct chgcmd snotice behaviour (#173) Fix CHG commands snomask messages ($target.detail -> $target.details) --- src/modules/chghost.c | 6 +++--- src/modules/chgident.c | 6 +++--- src/modules/chgname.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/chghost.c b/src/modules/chghost.c index cb9f0c1e6..99bd1c8aa 100644 --- a/src/modules/chghost.c +++ b/src/modules/chghost.c @@ -326,10 +326,10 @@ CMD_FUNC(cmd_chghost) if (!IsULine(client)) { unreal_log(ULOG_INFO, "chgcmds", "CHGHOST_COMMAND", client, - "CHGHOST: $client changed the virtual hostname of $target.detail to be $new_hostname", + "CHGHOST: $client changed the virtual hostname of $target.details to be $new_hostname", log_data_string("change_type", "hostname"), - log_data_string("new_hostname", parv[2]), - log_data_client("target", target)); + log_data_client("target", target) + log_data_string("new_hostname", parv[2])); } target->umodes |= UMODE_HIDE; diff --git a/src/modules/chgident.c b/src/modules/chgident.c index 40973b6e1..585087829 100644 --- a/src/modules/chgident.c +++ b/src/modules/chgident.c @@ -135,10 +135,10 @@ CMD_FUNC(cmd_chgident) if (!IsULine(client)) { unreal_log(ULOG_INFO, "chgcmds", "CHGIDENT_COMMAND", client, - "CHIDENT: $client changed the username of $target.detail to be $new_username", + "CHIDENT: $client changed the username of $target.details to be $new_username", log_data_string("change_type", "username"), - log_data_string("new_username", parv[2]), - log_data_client("target", target)); + log_data_client("target", target), + log_data_string("new_username", parv[2])); } sendto_server(client, 0, 0, NULL, ":%s CHGIDENT %s %s", diff --git a/src/modules/chgname.c b/src/modules/chgname.c index 6ba5094b3..367955579 100644 --- a/src/modules/chgname.c +++ b/src/modules/chgname.c @@ -98,10 +98,10 @@ CMD_FUNC(cmd_chgname) if (!IsULine(client)) { unreal_log(ULOG_INFO, "chgcmds", "CHGHOST_COMMAND", client, - "CHGHOST: $client changed the realname of $target.detail to be $new_realname", + "CHGHOST: $client changed the realname of $target.details to be $new_realname", log_data_string("change_type", "realname"), - log_data_string("new_realname", parv[2]), - log_data_client("target", target)); + log_data_client("target", target), + log_data_string("new_realname", parv[2])); } /* set the realname to make ban checking work */