From 48e409767fb093e7db5b122cd39357d2eb02370b Mon Sep 17 00:00:00 2001 From: Keith Buck Date: Wed, 5 Mar 2014 08:12:22 +0000 Subject: [PATCH] Add DNSBL snotes for snomask +r. --- help/opers/snomask | 2 +- src/s_user.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/help/opers/snomask b/help/opers/snomask index 22b62b7e6..4901cb0ba 100644 --- a/help/opers/snomask +++ b/help/opers/snomask @@ -11,7 +11,7 @@ Server notice masks: +f - Clients refused due to limits +k - Server and service kill messages +n - Local client nick changes - +r - Invalid usernames + +r - Invalid usernames and DNSBL listings +s - Generic server messages and oper kills +u - Client connections without auth{} block +x - New server introduction and split messages diff --git a/src/s_user.c b/src/s_user.c index 22e7c451d..bc9b0949d 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -434,6 +434,11 @@ register_local_user(struct Client *client_p, struct Client *source_p, const char source_p->sockhost, source_p->preClient->dnsbl_listed->host); else { + sendto_realops_snomask(SNO_REJ, L_NETWIDE, + "DNSBL listed: %s!%s@%s{%s} %s (%s)", source_p->name, + source_p->username, source_p->host, source_p->sockhost, source_p->info, + source_p->preClient->dnsbl_listed->host); + rb_dlink_list varlist = { NULL, NULL, 0 }; substitution_append_var(&varlist, "nick", source_p->name);