diff options
author | James Booth <boothj5@gmail.com> | 2015-09-25 23:04:57 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-09-25 23:04:57 +0100 |
commit | ca3da5a9299d33e3f16c35c6a190d7830cd2395b (patch) | |
tree | 7a8cbae27324f2d9aca79ae853ab7a5df67b3e3d | |
parent | 100db7c36cc40ff740a51d51c2c7887c4d2e138d (diff) | |
download | profani-tty-ca3da5a9299d33e3f16c35c6a190d7830cd2395b.tar.gz |
Allow autoaway when status is dnd
-rw-r--r-- | src/profanity.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c index edc3cf76..f56a296b 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -180,7 +180,10 @@ _check_autoaway() if (!idle) { resource_presence_t current_presence = accounts_get_last_presence(jabber_get_account_name()); autoaway_pre_presence = current_presence; - if ((current_presence == RESOURCE_ONLINE) || (current_presence == RESOURCE_CHAT)) { + if ((current_presence == RESOURCE_ONLINE) + || (current_presence == RESOURCE_CHAT) + || (current_presence == RESOURCE_DND)) { + if (idle_ms >= prefs_time) { idle = TRUE; char *pref_autoaway_message = prefs_get_string(PREF_AUTOAWAY_MESSAGE); |