1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 06:43:13 +02:00

Correct chgcmd snotice behaviour (#173)

Fix CHG commands snomask messages ($target.detail -> $target.details)
This commit is contained in:
Valerie Pond
2021-11-01 06:09:49 +00:00
committed by GitHub
parent 7dd40614dd
commit f3db0d5971
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -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;
+3 -3
View File
@@ -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",
+3 -3
View File
@@ -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 */