]> 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 566a36928f15db4a5c3010bf6a2d129ca81f6b7b..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,
@@ -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);