mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Merge pull request #961 from ailin-nemui/no-topic-glitch
Show the proper TXT when topic was unset
This commit is contained in:
commit
a30fbd6cfb
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ static void cmd_topic(const char *data, SERVER_REC *server, WI_ITEM_REC *item)
|
||||||
if (channel == NULL) return;
|
if (channel == NULL) return;
|
||||||
|
|
||||||
printformat(server, channel->visible_name, MSGLEVEL_CRAP,
|
printformat(server, channel->visible_name, MSGLEVEL_CRAP,
|
||||||
channel->topic == NULL ? IRCTXT_NO_TOPIC : IRCTXT_TOPIC,
|
(channel->topic == NULL || *channel->topic == '\0') ? IRCTXT_NO_TOPIC : IRCTXT_TOPIC,
|
||||||
channel->visible_name, channel->topic);
|
channel->visible_name, channel->topic);
|
||||||
|
|
||||||
if (channel->topic_time > 0) {
|
if (channel->topic_time > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue