From ab15ec0a9a95c97a15e7219069122da56078b0d5 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 6 Jun 2015 00:54:41 +0200 Subject: degesch: save the topic from RPL_TOPIC --- degesch.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/degesch.c b/degesch.c index fad77f3..ed56a0d 100644 --- a/degesch.c +++ b/degesch.c @@ -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 -- cgit v1.2.3-70-g09d2