Added /account clear [account] port
This commit is contained in:
@@ -1195,6 +1195,7 @@ cmd_init(void)
|
||||
account_clear_ac = autocomplete_new();
|
||||
autocomplete_add(account_clear_ac, "password");
|
||||
autocomplete_add(account_clear_ac, "server");
|
||||
autocomplete_add(account_clear_ac, "port");
|
||||
autocomplete_add(account_clear_ac, "otr");
|
||||
|
||||
close_ac = autocomplete_new();
|
||||
|
||||
@@ -366,6 +366,10 @@ cmd_account(gchar **args, struct cmd_help_t help)
|
||||
accounts_clear_server(account_name);
|
||||
cons_show("Removed server for account %s", account_name);
|
||||
cons_show("");
|
||||
} else if (strcmp(property, "port") == 0) {
|
||||
accounts_clear_port(account_name);
|
||||
cons_show("Removed port for account %s", account_name);
|
||||
cons_show("");
|
||||
} else if (strcmp(property, "otr") == 0) {
|
||||
accounts_clear_otr(account_name);
|
||||
cons_show("OTR policy removed for account %s", account_name);
|
||||
|
||||
Reference in New Issue
Block a user