degesch: save the topic from RPL_TOPIC
This commit is contained in:
parent
ac6ee9ea80
commit
ab15ec0a9a
|
@ -4787,6 +4787,12 @@ irc_handle_rpl_topic (struct server *s, const struct irc_message *msg)
|
||||||
hard_assert ((channel && buffer) ||
|
hard_assert ((channel && buffer) ||
|
||||||
(channel && !buffer) || (!channel && !buffer));
|
(channel && !buffer) || (!channel && !buffer));
|
||||||
|
|
||||||
|
if (channel)
|
||||||
|
{
|
||||||
|
free (channel->topic);
|
||||||
|
channel->topic = xstrdup (topic);
|
||||||
|
}
|
||||||
|
|
||||||
if (buffer)
|
if (buffer)
|
||||||
{
|
{
|
||||||
// FIXME: logging
|
// FIXME: logging
|
||||||
|
|
Loading…
Reference in New Issue