diff options
author | James Booth <boothj5@gmail.com> | 2014-10-23 23:07:27 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-10-23 23:07:27 +0100 |
commit | 552d88b931341b035548923b8e099bd25741064c (patch) | |
tree | 99b08e8a5fa5f1928476b2bc3ac8b35e92a1b44d /src/command | |
parent | 91883fd95d374cea3930f404e2ee3951acc76b4d (diff) | |
download | profani-tty-552d88b931341b035548923b8e099bd25741064c.tar.gz |
Added /account clear [account] server
Diffstat (limited to 'src/command')
-rw-r--r-- | src/command/command.c | 1 | ||||
-rw-r--r-- | src/command/commands.c | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 5726b49f..b8daa7eb 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -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(); diff --git a/src/command/commands.c b/src/command/commands.c index 40640485..eb361b3e 100644 --- a/src/command/commands.c +++ b/src/command/commands.c @@ -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); |