diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-28 17:44:29 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-28 17:44:29 +0200 |
commit | 3b42a09751eaecec637e40ca1c816092aab01181 (patch) | |
tree | 3cdf55141f785bf0738e47ef07e414869c8b66f3 /kike.c | |
parent | db6939bd6085d9eef1a58e963f44c8b618d38030 (diff) | |
download | xK-3b42a09751eaecec637e40ca1c816092aab01181.tar.gz xK-3b42a09751eaecec637e40ca1c816092aab01181.tar.xz xK-3b42a09751eaecec637e40ca1c816092aab01181.zip |
kike: fix /topic handling
Diffstat (limited to 'kike.c')
-rw-r--r-- | kike.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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", |