Revert "LIST: since we now have channel::strip_topic_colors, don't unconditionally strip colors here anymore"
This reverts commit b28b21f6d5
.
This commit is contained in:
parent
b28b21f6d5
commit
e4af89f4d7
1 changed files with 8 additions and 1 deletions
|
@ -281,10 +281,17 @@ 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,
|
static void list_one_channel(struct Client *source_p, struct Channel *chptr,
|
||||||
int visible)
|
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,
|
sendto_one(source_p, form_str(RPL_LIST), me.name, source_p->name,
|
||||||
visible ? "" : "!",
|
visible ? "" : "!",
|
||||||
chptr->chname, rb_dlink_list_length(&chptr->members),
|
chptr->chname, rb_dlink_list_length(&chptr->members),
|
||||||
chptr->topic != NULL ? chptr->topic : "");
|
topic);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue