X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/3cbbfb2556d8f04c8c8895372fd815158f850ee1..b2c208be091670e3c5259eba77187bae6ac6eece:/modules/m_xline.c diff --git a/modules/m_xline.c b/modules/m_xline.c index 566a3692..ab348ac8 100644 --- a/modules/m_xline.c +++ b/modules/m_xline.c @@ -256,18 +256,6 @@ valid_xline(struct Client *source_p, const char *gecos, const char *reason) return 0; } - if(strchr(reason, ':') != NULL) - { - sendto_one_notice(source_p, ":Invalid character ':' in comment"); - return 0; - } - - if(strchr(reason, '"')) - { - sendto_one_notice(source_p, ":Invalid character '\"' in comment"); - return 0; - } - if(!valid_wild_card_simple(gecos)) { sendto_one_notice(source_p, @@ -283,7 +271,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 +511,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 +539,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);