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

Newlog: chgcmds (CHGHOST, CHGIDENT, CHGNAME)

This commit is contained in:
Bram Matthys
2021-08-10 17:39:52 +02:00
parent 48efe353af
commit 932094de72
3 changed files with 15 additions and 26 deletions
+5 -9
View File
@@ -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 */