From f7aa03f8e66a4d062555e81aef39e39fff972217 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 25 Sep 2015 21:53:29 +0100 Subject: [PATCH] Include last activity with autoaway mode away --- src/profanity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/profanity.c b/src/profanity.c index 79e008d7..d5c2a493 100644 --- a/src/profanity.c +++ b/src/profanity.c @@ -183,7 +183,7 @@ _check_autoaway() // handle away mode if (strcmp(pref_autoaway_mode, "away") == 0) { - cl_ev_presence_send(RESOURCE_AWAY, pref_autoaway_message, 0); + cl_ev_presence_send(RESOURCE_AWAY, pref_autoaway_message, idle_ms / 1000); ui_auto_away(); // handle idle mode