diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-06 00:54:41 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-06 01:18:59 +0200 |
commit | ab15ec0a9a95c97a15e7219069122da56078b0d5 (patch) | |
tree | 8f202241b192f7ec1bfbdf57cbf5b1e120ecfdb3 | |
parent | ac6ee9ea8023c8e0399f8cd406f6eee4c57c91c9 (diff) | |
download | xK-ab15ec0a9a95c97a15e7219069122da56078b0d5.tar.gz xK-ab15ec0a9a95c97a15e7219069122da56078b0d5.tar.xz xK-ab15ec0a9a95c97a15e7219069122da56078b0d5.zip |
degesch: save the topic from RPL_TOPIC
-rw-r--r-- | degesch.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |