1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-29 05:16:37 +02:00

Show who actually tried to use a banned nick.

Reported by Amiga600 in https://bugs.unrealircd.org/view.php?id=6300
Inspired by patch from Valware in https://github.com/unrealircd/unrealircd/pull/255
This commit is contained in:
Bram Matthys
2023-08-19 12:17:00 +02:00
parent f756b7bea6
commit d63a8cf2d5
+2 -2
View File
@@ -140,7 +140,7 @@ CMD_FUNC(cmd_nick_remote)
if (!IsULine(client) && (tklban = find_qline(client, nick, &ishold)) && !ishold)
{
unreal_log(ULOG_INFO, "nick", "QLINE_NICK_REMOTE", client,
"Banned nick $nick [$ip] from server $server ($reason)",
"Banned nick $nick used by $client.details, allowed through by server $server ($reason)",
log_data_string("nick", parv[1]),
log_data_string("ip", GetIP(client)),
log_data_client("server", client->uplink),
@@ -287,7 +287,7 @@ CMD_FUNC(cmd_nick_local)
add_fake_lag(client, 4000); /* lag them up */
sendnumeric(client, ERR_ERRONEUSNICKNAME, nick, tklban->ptr.nameban->reason);
unreal_log(ULOG_INFO, "nick", "QLINE_NICK_LOCAL_ATTEMPT", client,
"Attempt to use banned nick $nick [$ip] blocked ($reason)",
"Attempt to use banned nick $nick by $client.details blocked ($reason)",
log_data_string("nick", parv[1]),
log_data_string("ip", GetIP(client)),
log_data_client("server", client->uplink),