From f0b84afaba98306327edeed3c25d7961026a52c6 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Sun, 15 Sep 2013 21:28:36 -0700 Subject: [PATCH] src/s_user: DNSBL hits are now global snomasks Previously server notices for DNSBL hits only were locally broadcast. Now they are globally broadcast under SNOMASK r. --- src/s_user.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/s_user.c b/src/s_user.c index 3e605e5..06f8179 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -452,6 +452,10 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char source_p->sockhost, source_p->preClient->dnsbl_listed->host); source_p->preClient->dnsbl_listed->hits++; + sendto_server(NULL, NULL, CAP_TS6, NOCAPS, + ":%s ENCAP * SNOTE r :%s (%s@%s) is being disconnected due to being listed in DNS Blacklist %s", + me.id, source_p->name, source_p->username, source_p->sockhost, source_p->preClient->dnsbl_listed->host); + sendto_realops_snomask(SNO_REJ, L_ALL, "%s (%s@%s) is being disconnected due to being listed in DNS Blacklist %s", source_p->name, source_p->username, source_p->sockhost, source_p->preClient->dnsbl_listed->host);