1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-30 02:06:37 +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 -8
View File
@@ -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;
+5 -9
View File
@@ -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",
+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 */