mirror of
https://github.com/weechat/weechat.git
synced 2026-07-02 07:46:38 +02:00
Fix bug with reset of topic for irc channel / jabber muc
This commit is contained in:
@@ -200,7 +200,8 @@ irc_channel_set_topic (struct t_irc_channel *channel, const char *topic)
|
||||
free (channel->topic);
|
||||
|
||||
channel->topic = (topic) ? strdup (topic) : NULL;
|
||||
weechat_buffer_set (channel->buffer, "title", channel->topic);
|
||||
weechat_buffer_set (channel->buffer, "title",
|
||||
(channel->topic) ? channel->topic : "");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -183,7 +183,7 @@ jabber_muc_set_topic (struct t_jabber_muc *muc, const char *topic)
|
||||
free (muc->topic);
|
||||
|
||||
muc->topic = (topic) ? strdup (topic) : NULL;
|
||||
weechat_buffer_set (muc->buffer, "title", muc->topic);
|
||||
weechat_buffer_set (muc->buffer, "title", (muc->topic) ? muc->topic : "");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user