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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user