aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-06 00:54:41 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-06 01:18:59 +0200
commitab15ec0a9a95c97a15e7219069122da56078b0d5 (patch)
tree8f202241b192f7ec1bfbdf57cbf5b1e120ecfdb3
parentac6ee9ea8023c8e0399f8cd406f6eee4c57c91c9 (diff)
downloadxK-ab15ec0a9a95c97a15e7219069122da56078b0d5.tar.gz
xK-ab15ec0a9a95c97a15e7219069122da56078b0d5.tar.xz
xK-ab15ec0a9a95c97a15e7219069122da56078b0d5.zip
degesch: save the topic from RPL_TOPIC
-rw-r--r--degesch.c6
1 files changed, 6 insertions, 0 deletions
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