mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-08-01 07:56:22 +00:00
@@ -482,9 +482,11 @@ static void
|
||||
_handle_idle_time()
|
||||
{
|
||||
gint prefs_time = prefs_get_autoaway_time() * 60000;
|
||||
|
||||
resource_presence_t current_presence = accounts_get_last_presence(jabber_get_account_name());
|
||||
unsigned long idle_ms = ui_get_idle_time();
|
||||
|
||||
if (!idle) {
|
||||
if ((current_presence == RESOURCE_ONLINE) || (current_presence == RESOURCE_CHAT)) {
|
||||
if (idle_ms >= prefs_time) {
|
||||
idle = TRUE;
|
||||
|
||||
@@ -515,6 +517,7 @@ _handle_idle_time()
|
||||
prefs_get_string(PREF_AUTOAWAY_MESSAGE), idle_ms / 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if (idle_ms < prefs_time) {
|
||||
|
||||
Reference in New Issue
Block a user