mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 03:26:21 +00:00
Allow "account" setting in [connection] to autconnect the account
closes #251
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user