summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-channel.c3
-rw-r--r--src/plugins/jabber/jabber-muc.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c
index 7f06e0939..eae5a1238 100644
--- a/src/plugins/irc/irc-channel.c
+++ b/src/plugins/irc/irc-channel.c
@@ -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 : "");
}
/*
diff --git a/src/plugins/jabber/jabber-muc.c b/src/plugins/jabber/jabber-muc.c
index dd24d2e26..74eb84ef3 100644
--- a/src/plugins/jabber/jabber-muc.c
+++ b/src/plugins/jabber/jabber-muc.c
@@ -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 : "");
}
/*