1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Allow autoaway when status is dnd

This commit is contained in:
James Booth 2015-09-25 23:04:57 +01:00
parent 100db7c36c
commit ca3da5a929

View File

@ -180,7 +180,10 @@ _check_autoaway()
if (!idle) { if (!idle) {
resource_presence_t current_presence = accounts_get_last_presence(jabber_get_account_name()); resource_presence_t current_presence = accounts_get_last_presence(jabber_get_account_name());
autoaway_pre_presence = current_presence; 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) { if (idle_ms >= prefs_time) {
idle = TRUE; idle = TRUE;
char *pref_autoaway_message = prefs_get_string(PREF_AUTOAWAY_MESSAGE); char *pref_autoaway_message = prefs_get_string(PREF_AUTOAWAY_MESSAGE);