1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Send away and message when idle

This commit is contained in:
James Booth 2012-11-30 22:05:52 +00:00
parent ef40a33ab4
commit 48c4d6dc8f

View File

@ -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);
}
}
}