about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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