mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
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
This commit is contained in:
parent
1c72768b93
commit
0cc7baa7df
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user