1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 08:43:13 +02:00

Fix crash when channel topic is removed if it was already empty (if option irc.look.display_old_topic is on)

This commit is contained in:
Sebastien Helleu
2010-10-16 07:57:40 +02:00
parent ee37060734
commit 880163d784
+2 -1
View File
@@ -1817,7 +1817,8 @@ IRC_PROTOCOL_CALLBACK(topic)
}
else
{
if (weechat_config_boolean (irc_config_look_display_old_topic))
if (weechat_config_boolean (irc_config_look_display_old_topic)
&& ptr_channel && ptr_channel->topic && ptr_channel->topic[0])
{
old_topic_color = irc_color_decode (ptr_channel->topic,
weechat_config_boolean (irc_config_network_colors_receive));