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

Newlog: when there are two clients involved with a clear issuer/target

relationship, make the issuer "client" (this was already so) and
the target is "target" (and no longer sometimes "victim").
For consistency, of course :D
This commit is contained in:
Bram Matthys
2021-08-10 17:33:30 +02:00
parent 2d72dd0c00
commit 48efe353af
+6 -6
View File
@@ -1100,9 +1100,9 @@ CMD_FUNC(cmd_tempshun)
{
SetShunned(target);
unreal_log(ULOG_INFO, "tkl", "TKL_ADD_TEMPSHUN", client,
"Temporary shun added on user $victim.details [reason: $shun_reason] [by: $client]",
"Temporary shun added on user $target.details [reason: $shun_reason] [by: $client]",
log_data_string("shun_reason", comment),
log_data_client("victim", target));
log_data_client("target", target));
}
} else {
if (!IsShunned(target))
@@ -1111,8 +1111,8 @@ CMD_FUNC(cmd_tempshun)
} else {
ClearShunned(target);
unreal_log(ULOG_INFO, "tkl", "TKL_DEL_TEMPSHUN", client,
"Temporary shun removed from user $victim.details [by: $client]",
log_data_client("victim", target));
"Temporary shun removed from user $target.details [by: $client]",
log_data_client("target", target));
}
}
}
@@ -4428,9 +4428,9 @@ int _place_host_ban(Client *client, BanAction action, char *reason, long duratio
case BAN_ACT_TEMPSHUN:
/* We simply mark this connection as shunned and do not add a ban record */
unreal_log(ULOG_INFO, "tkl", "TKL_ADD_TEMPSHUN", &me,
"Temporary shun added on user $victim.details [reason: $shun_reason] [by: $client]",
"Temporary shun added on user $target.details [reason: $shun_reason] [by: $client]",
log_data_string("shun_reason", reason),
log_data_client("victim", client));
log_data_client("target", client));
SetShunned(client);
return 1;
case BAN_ACT_GZLINE: