degesch: save the topic from RPL_TOPIC

This commit is contained in:
Přemysl Eric Janouch 2015-06-06 00:54:41 +02:00
parent ac6ee9ea80
commit ab15ec0a9a
1 changed files with 6 additions and 0 deletions

View File

@ -4787,6 +4787,12 @@ irc_handle_rpl_topic (struct server *s, const struct irc_message *msg)
hard_assert ((channel && buffer) ||
(channel && !buffer) || (!channel && !buffer));
if (channel)
{
free (channel->topic);
channel->topic = xstrdup (topic);
}
if (buffer)
{
// FIXME: logging