1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Automatic joining to channels didn't work

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@639 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-08-31 21:03:40 +00:00 committed by cras
parent b4bdec4436
commit 03091413ee
2 changed files with 7 additions and 4 deletions

View File

@ -38,9 +38,7 @@ static void event_connected(IRC_SERVER_REC *server)
GString *chans;
GSList *tmp;
g_return_if_fail(server != NULL);
if (server->connrec->reconnection)
if (!IS_IRC_SERVER(server) || server->connrec->reconnection)
return;
/* join to the channels marked with autojoin in setup */
@ -71,7 +69,7 @@ static void channel_wholist(CHANNEL_REC *channel)
NICK_REC *nick;
char **bots, **bot;
g_return_if_fail(channel != NULL);
g_return_if_fail(IS_CHANNEL(channel));
rec = channels_setup_find(channel->name, channel->server->connrec->chatnet);
if (rec == NULL || rec->autosendcmd == NULL || !*rec->autosendcmd)

View File

@ -44,6 +44,9 @@ void irc_log_deinit(void);
void lag_init(void);
void lag_deinit(void);
void irc_channels_setup_init(void);
void irc_channels_setup_deinit(void);
void irc_core_init(void)
{
irc_servers_init();
@ -51,6 +54,7 @@ void irc_core_init(void)
irc_queries_init();
ctcp_init();
irc_channels_setup_init();
irc_commands_init();
irc_irc_init();
lag_init();
@ -70,6 +74,7 @@ void irc_core_deinit(void)
netsplit_deinit();
lag_deinit();
irc_commands_deinit();
irc_channels_setup_deinit();
ctcp_deinit();
irc_queries_deinit();