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:
@@ -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;
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user