about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-01-30 22:47:33 +0000
committerJames Booth <boothj5@gmail.com>2013-01-30 22:47:33 +0000
commitb54c273e579f5772a23a6f58e3637f5d78903992 (patch)
tree65c11ab0166f1eac4444d216ba444f9f879f477b
parentfa9826a36af3aea03369f77288b1ba6b6a231484 (diff)
downloadprofani-tty-b54c273e579f5772a23a6f58e3637f5d78903992.tar.gz
Added 'last' as option for /account status
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index ffd73086..62eb1cfc 100644
--- a/src/command.c
+++ b/src/command.c
@@ -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);