Added /account clear [account] server

This commit is contained in:
James Booth
2014-10-23 23:07:27 +01:00
parent 91883fd95d
commit 552d88b931
4 changed files with 16 additions and 0 deletions

View File

@@ -1194,6 +1194,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, "otr");
close_ac = autocomplete_new();

View File

@@ -362,6 +362,10 @@ cmd_account(gchar **args, struct cmd_help_t help)
accounts_clear_password(account_name);
cons_show("Removed password for account %s", account_name);
cons_show("");
} else if (strcmp(property, "server") == 0) {
accounts_clear_server(account_name);
cons_show("Removed server 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);