]> jfr.im git - irc/freenode/solanum.git/commitdiff
Add DNSBL snotes for snomask +r.
authorKeith Buck <redacted>
Wed, 5 Mar 2014 08:12:22 +0000 (08:12 +0000)
committerKeith Buck <redacted>
Wed, 5 Mar 2014 08:12:22 +0000 (08:12 +0000)
help/opers/snomask
src/s_user.c

index 22b62b7e6daccf087d0c9187d0b183b644dd683a..4901cb0ba9d78abc252489bcc4ae731d016e1889 100644 (file)
@@ -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
index 22e7c451d45344253866ce105adea20f0fd5b5c0..bc9b0949d00c65912c6c8e4ec7106f8470973f88 100644 (file)
@@ -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);