]> jfr.im git - solanum.git/commitdiff
XLINE: Do not cluster unxlines ON specific servers.
authorJilles Tjoelker <redacted>
Sat, 27 Mar 2010 15:09:26 +0000 (16:09 +0100)
committerJilles Tjoelker <redacted>
Sat, 27 Mar 2010 15:09:26 +0000 (16:09 +0100)
This bug was introduced with BAN support for XLINE.

modules/m_xline.c

index 315a686f3d6fb39737e80ed56a3160ce8fd233be..d1975ecdb8436b98745023364e83e3354d482958 100644 (file)
@@ -523,7 +523,7 @@ remove_xline(struct Client *source_p, const char *name, int propagated)
                                deactivate_conf(aconf, ptr);
                                return;
                        }
-                       else if(MyClient(source_p) && rb_dlink_list_length(&cluster_conf_list))
+                       else if(propagated && rb_dlink_list_length(&cluster_conf_list))
                                cluster_generic(source_p, "UNXLINE", SHARED_UNXLINE, CAP_CLUSTER, "%s", name);
                        if(!aconf->hold)
                        {
@@ -551,7 +551,7 @@ remove_xline(struct Client *source_p, const char *name, int propagated)
                }
        }
 
-       if(MyClient(source_p) && rb_dlink_list_length(&cluster_conf_list))
+       if(propagated && rb_dlink_list_length(&cluster_conf_list))
                cluster_generic(source_p, "UNXLINE", SHARED_UNXLINE, CAP_CLUSTER, "%s", name);
 
        sendto_one_notice(source_p, ":No X-Line for %s", name);