Allow "account" setting in [connection] to autconnect the account

closes #251
This commit is contained in:
James Booth
2013-11-07 23:04:12 +00:00
parent 2fa8da493e
commit 2b0108e6cc
6 changed files with 53 additions and 2 deletions

View File

@@ -76,6 +76,10 @@ prof_run(const int disable_tls, char *log_level, char *account_name)
char *cmd = "/connect";
snprintf(inp, sizeof(inp), "%s %s", cmd, account_name);
_process_input(inp);
} else if (prefs_get_string(PREF_CONNECT_ACCOUNT) != NULL) {
char *cmd = "/connect";
snprintf(inp, sizeof(inp), "%s %s", cmd, prefs_get_string(PREF_CONNECT_ACCOUNT));
_process_input(inp);
}
while(cmd_result == TRUE) {