diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-26 18:50:47 +0200 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-06-26 18:50:47 +0200 |
commit | 90bbb0efeae19bcc6a1096d8c89fbf3981c83503 (patch) | |
tree | 90f16e9026add66c194985c95cd5b460cb22907f /root_commands.c | |
parent | 471573f916c0cab785707f8313f762ab6e792208 (diff) |
Moved the call to "account on" to the right place.
Diffstat (limited to 'root_commands.c')
-rw-r--r-- | root_commands.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/root_commands.c b/root_commands.c index e69b9981..47143531 100644 --- a/root_commands.c +++ b/root_commands.c @@ -126,9 +126,12 @@ static void cmd_help( irc_t *irc, char **cmd ) } } +static void cmd_account( irc_t *irc, char **cmd ); + static void cmd_identify( irc_t *irc, char **cmd ) { storage_status_t status = storage_load( irc->nick, cmd[1], irc ); + char *account_on[] = { "account", "on", NULL }; switch (status) { case STORAGE_INVALID_PASSWORD: @@ -140,6 +143,8 @@ static void cmd_identify( irc_t *irc, char **cmd ) case STORAGE_OK: irc_usermsg( irc, "Password accepted, settings and accounts loaded" ); irc_umode_set( irc, "+R", 1 ); + if( set_getint( irc, "auto_connect" ) ) + cmd_account( irc, account_on ); break; case STORAGE_OTHER_ERROR: default: |