about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-25 21:53:29 +0100
committerJames Booth <boothj5@gmail.com>2015-09-25 21:53:29 +0100
commitf7aa03f8e66a4d062555e81aef39e39fff972217 (patch)
tree511642d701fb48daeb49e82aad62803691faff03
parentc5178747fdbf9a9d5b8facc03f12bc5a1a38860e (diff)
downloadprofani-tty-f7aa03f8e66a4d062555e81aef39e39fff972217.tar.gz
Include last activity with autoaway mode away
-rw-r--r--src/profanity.c2
1 files changed, 1 insertions, 1 deletions
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