From 40114db23cd832ebaa721a1c6307869eb666d9a0 Mon Sep 17 00:00:00 2001 From: JD Horelick Date: Wed, 23 Jun 2010 13:44:33 -0400 Subject: [PATCH] Make DNSBL hits snote on hit. The snote displays nick, IP and what DNSBL they hit. --- src/s_user.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/s_user.c b/src/s_user.c index 169b068..fd8305b 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -451,6 +451,11 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char sendto_one_notice(source_p, ":*** Your IP address %s is listed in %s", source_p->sockhost, source_p->preClient->dnsbl_listed->host); source_p->preClient->dnsbl_listed->hits++; + + sendto_realops_snomask(SNO_GENERAL, L_ALL, + "%s [%s] is being disconnected due to being listed in DNS Blacklist %s", + source_p->name, source_p->sockhost, source_p->preClient->dnsbl_listed->host); + add_reject(source_p, NULL, NULL); exit_client(client_p, source_p, &me, "*** Banned (DNS blacklist)"); return CLIENT_EXITED;