From 48c4d6dc8fc350e285c925bd921ff2b32122ff84 Mon Sep 17 00:00:00 2001 From: James Booth Date: Fri, 30 Nov 2012 22:05:52 +0000 Subject: [PATCH] Send away and message when idle --- src/profanity.c | 4 ++-- 1 file 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); } } }