summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-06-28 17:44:29 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-06-28 17:44:29 +0200
commit3b42a09751eaecec637e40ca1c816092aab01181 (patch)
tree3cdf55141f785bf0738e47ef07e414869c8b66f3
parentdb6939bd6085d9eef1a58e963f44c8b618d38030 (diff)
downloadxK-3b42a09751eaecec637e40ca1c816092aab01181.tar.gz
xK-3b42a09751eaecec637e40ca1c816092aab01181.tar.xz
xK-3b42a09751eaecec637e40ca1c816092aab01181.zip
kike: fix /topic handling
-rw-r--r--kike.c3
1 files changed, 2 insertions, 1 deletions
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",