]> jfr.im git - solanum.git/blobdiff - modules/m_dline.c
reference.conf: add drain_reason
[solanum.git] / modules / m_dline.c
index 381f8a39538e2ffe454f4d399f444affe5044879..eb8edcf3530d566c375e892b27398f038a0eae54 100644 (file)
@@ -195,11 +195,6 @@ me_dline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source
        if(!IsPerson(source_p))
                return;
 
-       if(!find_shared_conf(source_p->username, source_p->host,
-                            source_p->servptr->name,
-                            tdline_time > 0 ? SHARED_TDLINE : SHARED_PDLINE))
-               return;
-
        apply_dline(source_p, parv[2], tdline_time, LOCAL_COPY(parv[3]));
 
        check_dlines();
@@ -211,10 +206,6 @@ me_undline(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *sour
        if(!IsPerson(source_p))
                return;
 
-       if(!find_shared_conf(source_p->username, source_p->host,
-                            source_p->servptr->name, SHARED_UNDLINE))
-               return;
-
        apply_undline(source_p, parv[1]);
 }
 
@@ -312,7 +303,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
 
                if(EmptyString(oper_reason))
                {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                               "%s added temporary %d min. D-Line for [%s] [%s]",
                                               get_oper_name(source_p), tdline_time / 60,
                                               aconf->host, reason);
@@ -321,7 +312,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
                }
                else
                {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                               "%s added temporary %d min. D-Line for [%s] [%s|%s]",
                                               get_oper_name(source_p), tdline_time / 60,
                                               aconf->host, reason, oper_reason);
@@ -342,7 +333,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
 
                if(EmptyString(oper_reason))
                {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                               "%s added D-Line for [%s] [%s]",
                                               get_oper_name(source_p), aconf->host, reason);
                        ilog(L_KLINE, "D %s 0 %s %s",
@@ -350,7 +341,7 @@ apply_dline(struct Client *source_p, const char *dlhost, int tdline_time, char *
                }
                else
                {
-                       sendto_realops_snomask(SNO_GENERAL, L_ALL,
+                       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                               "%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",
@@ -387,7 +378,7 @@ apply_undline(struct Client *source_p, const char *cidr)
                sendto_one(source_p,
                           ":%s NOTICE %s :Un-dlined [%s] from temporary D-lines",
                           me.name, source_p->name, buf);
-               sendto_realops_snomask(SNO_GENERAL, L_ALL,
+               sendto_realops_snomask(SNO_GENERAL, L_NETWIDE,
                                       "%s has removed the temporary D-Line for: [%s]",
                                       get_oper_name(source_p), buf);
                ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), buf);
@@ -398,7 +389,7 @@ apply_undline(struct Client *source_p, const char *cidr)
 
        sendto_one(source_p, ":%s NOTICE %s :D-Line for [%s] is removed", me.name, source_p->name,
                   aconf->host);
-       sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s has removed the D-Line for: [%s]",
+       sendto_realops_snomask(SNO_GENERAL, L_NETWIDE, "%s has removed the D-Line for: [%s]",
                               get_oper_name(source_p), aconf->host);
        ilog(L_KLINE, "UD %s %s", get_oper_name(source_p), aconf->host);
        delete_one_address_conf(aconf->host, aconf);