about summary refs log tree commit diff stats
path: root/src/profanity.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2012-11-30 21:58:47 +0000
committerJames Booth <boothj5@gmail.com>2012-11-30 21:59:31 +0000
commitef40a33ab4910710b4c361cbe183a59a269d4d46 (patch)
tree2ce4fed717ee86210ce7acff006020fa48cd46b6 /src/profanity.c
parent020e516acfaaee61ccb52e41d5f9d323e324d625 (diff)
downloadprofani-tty-ef40a33ab4910710b4c361cbe183a59a269d4d46.tar.gz
Use only one measure for idle
Diffstat (limited to 'src/profanity.c')
-rw-r--r--src/profanity.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/profanity.c b/src/profanity.c
index bf61ff4b..f5d54a9a 100644
--- a/src/profanity.c
+++ b/src/profanity.c
@@ -51,7 +51,6 @@ static void _init(const int disable_tls, char *log_level);
 static void _shutdown(void);
 
 static gboolean idle = FALSE;
-static gboolean away = FALSE;
 
 void
 prof_run(const int disable_tls, char *log_level)
@@ -453,11 +452,7 @@ _handle_idle_time()
     } else {
         if (idle_ms < 5000) {
             idle = FALSE;
-            away = FALSE;
             cons_show("BACK");
-        } else if ((idle_ms >= 10000) && (!away)) {
-            away = TRUE;
-            cons_show("AWAY");
         }
     }
 }