X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/112e8a666b1c901d24b1883b257ce02cb6aa82ec..36fb4e9a7743326d1a2ca7601bc9bf1c5b9a0bcb:/modules/m_xline.c diff --git a/modules/m_xline.c b/modules/m_xline.c index 566a369..d1975ec 100644 --- a/modules/m_xline.c +++ b/modules/m_xline.c @@ -283,7 +283,6 @@ valid_xline(struct Client *source_p, const char *gecos, const char *reason) void apply_xline(struct Client *source_p, const char *name, const char *reason, int temp_time, int propagated) { - rb_dlink_node *ptr; struct ConfItem *aconf; aconf = make_conf(); @@ -524,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) { @@ -552,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);