1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Use only one measure for idle

This commit is contained in:
James Booth 2012-11-30 21:58:47 +00:00
parent 020e516acf
commit ef40a33ab4

View File

@ -51,7 +51,6 @@ static void _init(const int disable_tls, char *log_level);
static void _shutdown(void); static void _shutdown(void);
static gboolean idle = FALSE; static gboolean idle = FALSE;
static gboolean away = FALSE;
void void
prof_run(const int disable_tls, char *log_level) prof_run(const int disable_tls, char *log_level)
@ -453,11 +452,7 @@ _handle_idle_time()
} else { } else {
if (idle_ms < 5000) { if (idle_ms < 5000) {
idle = FALSE; idle = FALSE;
away = FALSE;
cons_show("BACK"); cons_show("BACK");
} else if ((idle_ms >= 10000) && (!away)) {
away = TRUE;
cons_show("AWAY");
} }
} }
} }