mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Send away and message when idle
This commit is contained in:
parent
ef40a33ab4
commit
48c4d6dc8f
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user