mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
added warning about options not being used
This commit is contained in:
parent
6a3285795a
commit
eb2986d531
@ -113,8 +113,6 @@ cmd_connect(gchar **args, struct cmd_help_t help)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
options_destroy(options);
|
|
||||||
|
|
||||||
char *user = args[0];
|
char *user = args[0];
|
||||||
if(!user){
|
if(!user){
|
||||||
if(def){
|
if(def){
|
||||||
@ -135,6 +133,8 @@ cmd_connect(gchar **args, struct cmd_help_t help)
|
|||||||
account->password = ui_ask_password();
|
account->password = ui_ask_password();
|
||||||
}
|
}
|
||||||
cons_show("Connecting with account %s as %s", account->name, jid);
|
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);
|
conn_status = jabber_connect_with_account(account);
|
||||||
account_free(account);
|
account_free(account);
|
||||||
} else {
|
} else {
|
||||||
@ -151,6 +151,8 @@ cmd_connect(gchar **args, struct cmd_help_t help)
|
|||||||
log_info("Connection attempt for %s failed", jid);
|
log_info("Connection attempt for %s failed", jid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
options_destroy(options);
|
||||||
|
|
||||||
free(jid);
|
free(jid);
|
||||||
|
|
||||||
result = TRUE;
|
result = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user