mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Added 'last' as option for /account status
This commit is contained in:
parent
fa9826a36a
commit
b54c273e57
@ -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("Updated resource for account %s: %s", account_name, value);
|
||||||
cons_show("");
|
cons_show("");
|
||||||
} else if (strcmp(property, "status") == 0) {
|
} 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);
|
cons_show("Invalud status: %s", value);
|
||||||
} else {
|
} else {
|
||||||
accounts_set_login_presence(account_name, value);
|
accounts_set_login_presence(account_name, value);
|
||||||
|
Loading…
Reference in New Issue
Block a user