diff options
Diffstat (limited to 'src/profanity.c')
-rw-r--r-- | src/profanity.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/profanity.c b/src/profanity.c index 38be5531..116e8b9c 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -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) { |