about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index eed22ed5..1680c27b 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -130,7 +130,7 @@ cmd_connect(gchar **args, struct cmd_help_t help)
         ProfAccount *account = accounts_get_account(lower);
         if (account != NULL) {
             jid = account_create_full_jid(account);
-            if (account->password == NULL) {
+            if (account->password == NULL && account->eval_password == NULL) {
                 account->password = ui_ask_password();
             }
             cons_show("Connecting with account %s as %s", account->name, jid);
@@ -440,8 +440,8 @@ cmd_account(gchar **args, struct cmd_help_t help)
                     cons_show("Removed password for account %s", account_name);
                     cons_show("");
                 } else if (strcmp(property, "eval_password") == 0) {
-                    accounts_clear_password(account_name);
-                    cons_show("Removed password for account %s", account_name);
+                    accounts_clear_eval_password(account_name);
+                    cons_show("Removed eval password for account %s", account_name);
                     cons_show("");
                 } else if (strcmp(property, "server") == 0) {
                     accounts_clear_server(account_name);