diff options
author | James Booth <boothj5@gmail.com> | 2012-11-30 22:05:52 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-30 22:05:52 +0000 |
commit | 48c4d6dc8fc350e285c925bd921ff2b32122ff84 (patch) | |
tree | 419f2677f15f781655ec2f5f27cfdfa9e6c8a15c | |
parent | ef40a33ab4910710b4c361cbe183a59a269d4d46 (diff) | |
download | profani-tty-48c4d6dc8fc350e285c925bd921ff2b32122ff84.tar.gz |
Send away and message when idle
-rw-r--r-- | src/profanity.c | 4 |
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); } } } |