From 3b42a09751eaecec637e40ca1c816092aab01181 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 28 Jun 2015 17:44:29 +0200 Subject: kike: fix /topic handling --- kike.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kike.c b/kike.c index 9c85940..5edf9e9 100644 --- a/kike.c +++ b/kike.c @@ -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", -- cgit v1.2.3-70-g09d2