about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-30 22:05:52 +0000
committerJames Booth <boothj5@gmail.com>2012-11-30 22:05:52 +0000
commit48c4d6dc8fc350e285c925bd921ff2b32122ff84 (patch)
tree419f2677f15f781655ec2f5f27cfdfa9e6c8a15c
parentef40a33ab4910710b4c361cbe183a59a269d4d46 (diff)
downloadprofani-tty-48c4d6dc8fc350e285c925bd921ff2b32122ff84.tar.gz
Send away and message when idle
-rw-r--r--src/profanity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/profanity.c b/src/profanity.c
index f5d54a9a..93390fa8 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -446,13 +446,13 @@ _handle_idle_time()
     if (!idle) {
         if (idle_ms >= 5000) {
             idle = TRUE;
-            cons_show("IDLE");
+            jabber_update_presence(PRESENCE_AWAY, "Away from computer computer");
         }
 
     } else {
         if (idle_ms < 5000) {
             idle = FALSE;
-            cons_show("BACK");
+            jabber_update_presence(PRESENCE_ONLINE, NULL);
         }
     }
 }