]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_kline.c
Readd some oper notices.
[irc/rqf/shadowircd.git] / modules / m_kline.c
index f0ed4a3200c310af64e92d6dd39ed9fc465aa7ea..44012edc26699aa264026fca73dc89def7e73f00 100644 (file)
@@ -485,6 +485,28 @@ apply_kline(struct Client *source_p, struct ConfItem *aconf,
        add_conf_by_address(aconf->host, CONF_KILL, aconf->user, NULL, aconf);
        bandb_add(BANDB_KLINE, source_p, aconf->user, aconf->host,
                  reason, EmptyString(oper_reason) ? NULL : oper_reason, 0);
+
+       /* no oper reason.. */
+       if(EmptyString(oper_reason))
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                                      "%s added K-Line for [%s@%s] [%s]",
+                                      get_oper_name(source_p), aconf->user, aconf->host, reason);
+               ilog(L_KLINE, "K %s 0 %s %s %s",
+                    get_oper_name(source_p), aconf->user, aconf->host, reason);
+       }
+       else
+       {
+               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                                      "%s added K-Line for [%s@%s] [%s|%s]",
+                                      get_oper_name(source_p), aconf->user, aconf->host,
+                                      reason, oper_reason);
+               ilog(L_KLINE, "K %s 0 %s %s %s|%s",
+                    get_oper_name(source_p), aconf->user, aconf->host, reason, oper_reason);
+       }
+
+       sendto_one_notice(source_p, ":Added K-Line [%s@%s]",
+                         aconf->user, aconf->host);
 }
 
 /* apply_tkline()