diff options
author | James Booth <boothj5@gmail.com> | 2015-09-25 21:53:29 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-09-25 21:53:29 +0100 |
commit | f7aa03f8e66a4d062555e81aef39e39fff972217 (patch) | |
tree | 511642d701fb48daeb49e82aad62803691faff03 | |
parent | c5178747fdbf9a9d5b8facc03f12bc5a1a38860e (diff) | |
download | profani-tty-f7aa03f8e66a4d062555e81aef39e39fff972217.tar.gz |
Include last activity with autoaway mode away
-rw-r--r-- | src/profanity.c | 2 |
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 |