1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Added 'last' as option for /account status

This commit is contained in:
James Booth 2013-01-30 22:47:33 +00:00
parent fa9826a36a
commit b54c273e57

View File

@ -1158,7 +1158,7 @@ _cmd_account(gchar **args, struct cmd_help_t help)
cons_show("Updated resource for account %s: %s", account_name, value);
cons_show("");
} else if (strcmp(property, "status") == 0) {
if (!presence_valid_string(value)) {
if (!presence_valid_string(value) && (strcmp(value, "last") != 0)) {
cons_show("Invalud status: %s", value);
} else {
accounts_set_login_presence(account_name, value);