diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-25 17:06:11 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-25 17:06:11 +0000 |
commit | e8b71dcd9802fe6c6e4e7966dfc35786586ddf50 (patch) | |
tree | eb80c0296776b47594f1862f5ef3c0bd475118e9 /src/irc | |
parent | c3429fa50e2493aa8823bcd672e1dedb1c425337 (diff) | |
download | irssi-e8b71dcd9802fe6c6e4e7966dfc35786586ddf50.zip |
Added backwards compatibility for /UPGRADE for transferring nick list..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2149 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/core/irc-session.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/irc/core/irc-session.c b/src/irc/core/irc-session.c index cc8617a1..01fa6fba 100644 --- a/src/irc/core/irc-session.c +++ b/src/irc/core/irc-session.c @@ -100,9 +100,14 @@ static void session_restore_channel(IRC_CHANNEL_REC *channel) signal_emit("event join", 4, channel->server, channel->name, channel->server->nick, channel->server->userhost); - data = g_strconcat(channel->server->nick, " ", channel->name, NULL); - signal_emit("event 366", 2, channel->server, data); - g_free(data); + if (nicklist_find(CHANNEL(channel), channel->server->nick) == NULL) { + /* FIXME: remove before .99 */ + irc_send_cmdv(channel->server, "NAMES %s", channel->name); + } else { + data = g_strconcat(channel->server->nick, " ", channel->name, NULL); + signal_emit("event 366", 2, channel->server, data); + g_free(data); + } } static void sig_connected(IRC_SERVER_REC *server) |