]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/s_user.c
Change the DNSBL hit snomask to SNO_REJ (+r) as to not spam SNO_GENERAL
[irc/rqf/shadowircd.git] / src / s_user.c
index 080e1b440907540fc7babfbb054c356f230bc558..e6dc1ca60172d51773357d6fe0f9ff693f5a796c 100644 (file)
@@ -21,7 +21,6 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: s_user.c 3586 2007-11-20 11:16:43Z nenolod $
  */
 
 #include "stdinc.h"
@@ -452,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_REJ, 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;