1
0
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:
Sebastien Helleu
2009-02-25 19:13:47 +01:00
parent 5abc6f8c1b
commit 4772bd1865
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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 : "");
}
/*
+1 -1
View File
@@ -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 : "");
}
/*