kike: fix /topic handling

This commit is contained in:
Přemysl Eric Janouch 2015-06-28 17:44:29 +02:00
parent db6939bd60
commit 3b42a09751
1 changed files with 2 additions and 1 deletions

3
kike.c
View File

@ -2541,7 +2541,8 @@ irc_handle_topic (const struct irc_message *msg, struct client *c)
free (chan->topic);
free (chan->topic_who);
chan->topic = xstrdup (msg->params.vector[1]);
chan->topic_who = xstrdup (msg->prefix);
chan->topic_who = xstrdup_printf
("%s!%s@%s", c->nickname, c->username, c->hostname);
chan->topic_time = time (NULL);
char *message = xstrdup_printf (":%s!%s@%s TOPIC %s :%s",