diff options
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) |