From 80f9f16939b65536c5fc3ae1fedb885b84c82855 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Sat, 6 Oct 2018 20:14:49 +0200 Subject: [PATCH] Show the proper TXT when topic was unset --- src/fe-common/irc/fe-irc-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/irc/fe-irc-commands.c b/src/fe-common/irc/fe-irc-commands.c index 7a6b17a6..668367e4 100644 --- a/src/fe-common/irc/fe-irc-commands.c +++ b/src/fe-common/irc/fe-irc-commands.c @@ -305,7 +305,7 @@ static void cmd_topic(const char *data, SERVER_REC *server, WI_ITEM_REC *item) if (channel == NULL) return; 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); if (channel->topic_time > 0) {