]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_dline.c
Do not check for spambot if the user is not allowed to join the channel.
[irc/rqf/shadowircd.git] / modules / m_dline.c
index 0ad8ce8ce74d02453d7aed63e980445a08b2809a..5ac171b730f5fda4d0c79f12761ea39a4cfcd981 100644 (file)
@@ -341,6 +341,24 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
 
                bandb_add(BANDB_DLINE, source_p, aconf->host, NULL,
                          reason, EmptyString(aconf->spasswd) ? NULL : aconf->spasswd, 0);
+
+               if(EmptyString(oper_reason))
+               {
+                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                                              "%s added D-Line for [%s] [%s]",
+                                              get_oper_name(source_p), aconf->host, reason);
+                       ilog(L_KLINE, "D %s 0 %s %s",
+                            get_oper_name(source_p), aconf->host, reason);
+               }
+               else
+               {
+                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                                              "%s added D-Line for [%s] [%s|%s]",
+                                              get_oper_name(source_p), aconf->host, reason, oper_reason);
+                       ilog(L_KLINE, "D %s 0 %s %s|%s",
+                            get_oper_name(source_p),
+                            aconf->host, reason, oper_reason);
+               }
        }
 
        return 0;