From 7948b713cf1ff10aa151504a18dc5b1ae69f2500 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 6 Mar 2021 21:41:51 +0000 Subject: [PATCH] show gecos in mask match log lines --- masks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/masks.c b/masks.c index b8e68de..5f28898 100644 --- a/masks.c +++ b/masks.c @@ -264,8 +264,8 @@ void masks_newuser(hook_user_nick_t *data) if (blocked == 1) { - syn_report("Killing client %s(%s@%s) due to lethal mask %s", - u->nick, u->user, u->host, blocked_regex); + syn_report("Killing client %s(%s@%s) [%s] due to lethal mask %s", + u->nick, u->user, u->host, u->gecos, blocked_regex); syn_kill_or_kline(u, lethal_mask_duration, lethal_mask_message); data->u = NULL; return; @@ -273,8 +273,8 @@ void masks_newuser(hook_user_nick_t *data) if (suspicious_regex) { - syn_report("Client %s(%s@%s) matches suspicious mask %s", - u->nick, u->user, u->host, suspicious_regex); + syn_report("Client %s(%s@%s) [%s] matches suspicious mask %s", + u->nick, u->user, u->host, u->gecos, suspicious_regex); return; } }