]> jfr.im git - solanum.git/blobdiff - modules/m_xline.c
m_info: Correct description of general::client_exit like in example confs.
[solanum.git] / modules / m_xline.c
index 315a686f3d6fb39737e80ed56a3160ce8fd233be..ab348ac85bbd9e743b589a14f3409e7d97999c0c 100644 (file)
@@ -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,
@@ -523,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)
                        {
@@ -551,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);