1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

added warning about options not being used

This commit is contained in:
Will Song 2014-12-21 20:09:55 -06:00
parent 6a3285795a
commit eb2986d531

View File

@ -113,8 +113,6 @@ cmd_connect(gchar **args, struct cmd_help_t help)
}
}
options_destroy(options);
char *user = args[0];
if(!user){
if(def){
@ -135,6 +133,8 @@ cmd_connect(gchar **args, struct cmd_help_t help)
account->password = ui_ask_password();
}
cons_show("Connecting with account %s as %s", account->name, jid);
if(g_hash_table_contains(options, "port") || g_hash_table_contains(options, "server"))
cons_show("Ignoring extra connect options. Please set them with /account set");
conn_status = jabber_connect_with_account(account);
account_free(account);
} else {
@ -151,6 +151,8 @@ cmd_connect(gchar **args, struct cmd_help_t help)
log_info("Connection attempt for %s failed", jid);
}
options_destroy(options);
free(jid);
result = TRUE;