From 6451d2704fd0742680b485fb1d3690e251860073 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 29 Dec 2011 22:57:44 +0100 Subject: Move the check for "set auto_connect" to a more sensible location. #878. --- root_commands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'root_commands.c') diff --git a/root_commands.c b/root_commands.c index fcf6f66e..41b98a17 100644 --- a/root_commands.c +++ b/root_commands.c @@ -184,8 +184,7 @@ static void cmd_identify( irc_t *irc, char **cmd ) already sure that there's no takeover target (only possible in 1-process daemon mode). Start auto_connect immediately. */ - if( !ipc_child_identify( irc ) && load && - set_getbool( &irc->b->set, "auto_connect" ) ) + if( !ipc_child_identify( irc ) && load ) cmd_identify_finish( irc, 0, 0 ); break; @@ -201,7 +200,8 @@ gboolean cmd_identify_finish( gpointer data, gint fd, b_input_condition cond ) char *account_on[] = { "account", "on", NULL }; irc_t *irc = data; - cmd_account( irc, account_on ); + if( set_getbool( &irc->b->set, "auto_connect" ) ) + cmd_account( irc, account_on ); b_event_remove( irc->login_source_id ); irc->login_source_id = -1; -- cgit v1.2.3