diff options
author | Timo Sirainen <cras@irssi.org> | 2002-04-24 12:38:27 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-04-24 12:38:27 +0000 |
commit | 0cc7baa7df2dbdaf9d04bb7c441739afbd16dd0a (patch) | |
tree | e0a60241c189849c7570c8dc16f05ceac88b481c /src/irc | |
parent | 1c72768b93208cfa29db52b45819b59dfe623b34 (diff) | |
download | irssi-0cc7baa7df2dbdaf9d04bb7c441739afbd16dd0a.zip |
channel->topic_by now always contains the host info too (nick!user@host).
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2713 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/channel-events.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/irc/core/channel-events.c b/src/irc/core/channel-events.c index 81a87f26..aa80a0f5 100644 --- a/src/irc/core/channel-events.c +++ b/src/irc/core/channel-events.c @@ -156,14 +156,17 @@ static void event_topic_get(IRC_SERVER_REC *server, const char *data) } static void event_topic(IRC_SERVER_REC *server, const char *data, - const char *nick) + const char *nick, const char *addr) { - char *params, *channel, *topic; + char *params, *channel, *topic, *mask; g_return_if_fail(data != NULL); params = event_get_params(data, 2, &channel, &topic); - channel_change_topic(server, channel, topic, nick, time(NULL)); + mask = addr == NULL ? g_strdup(nick) : + g_strconcat(nick, "!", addr, NULL); + channel_change_topic(server, channel, topic, mask, time(NULL)); + g_free(mask); g_free(params); } |