about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-09-25 22:08:21 +0100
committerJames Booth <boothj5@gmail.com>2015-09-25 22:08:21 +0100
commit22ba3db0b27a34f62594adaab4519c854ee72f77 (patch)
treec8071229667f5cd9811478b8d8ab143583b59c2a /src
parentf7aa03f8e66a4d062555e81aef39e39fff972217 (diff)
downloadprofani-tty-22ba3db0b27a34f62594adaab4519c854ee72f77.tar.gz
Send current presence when autoaway mode idle
Diffstat (limited to 'src')
-rw-r--r--src/profanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profanity.c b/src/profanity.c
index d5c2a493..1e542420 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -188,7 +188,7 @@ _check_autoaway()
 
                 // handle idle mode
                 } else if (strcmp(pref_autoaway_mode, "idle") == 0) {
-                    cl_ev_presence_send(RESOURCE_ONLINE, pref_autoaway_message, idle_ms / 1000);
+                    cl_ev_presence_send(current_presence, pref_autoaway_message, idle_ms / 1000);
                 }
 
                 prefs_free_string(pref_autoaway_message);