]> jfr.im git - solanum.git/commitdiff
LIST: since we now have channel::strip_topic_colors, don't unconditionally strip...
authorWilliam Pitcock <redacted>
Wed, 13 Jan 2016 23:05:49 +0000 (17:05 -0600)
committerWilliam Pitcock <redacted>
Wed, 13 Jan 2016 23:05:49 +0000 (17:05 -0600)
modules/m_list.c

index 81ac0e99a138b0be23acbccf23618159163b32a2..fbecd52034e4e64cc00f41a508bd3fd7395d01fe 100644 (file)
@@ -281,17 +281,10 @@ static int mo_list(struct Client *client_p, struct Client *source_p, int parc, c
 static void list_one_channel(struct Client *source_p, struct Channel *chptr,
                int visible)
 {
-       char topic[TOPICLEN + 1];
-
-       if (chptr->topic != NULL)
-               rb_strlcpy(topic, chptr->topic, sizeof topic);
-       else
-               topic[0] = '\0';
-       strip_colour(topic);
        sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name,
                   visible ? "" : "!",
                   chptr->chname, rb_dlink_list_length(&chptr->members),
-                  topic);
+                  chptr->topic != NULL ? chptr->topic : "");
 }
 
 /*