diff mcabber/src/main.c @ 322:da138cdebf04

Implement auto-away mode
author Mikael Berthe <mikael@lilotux.net>
date Fri, 15 Jul 2005 22:08:53 +0100
parents 1ceb68eb2fc1
children db5bebe96c89
line wrap: on
line diff
--- a/mcabber/src/main.c	Fri Jul 15 19:12:50 2005 +0100
+++ b/mcabber/src/main.c	Fri Jul 15 22:08:53 2005 +0100
@@ -268,6 +268,7 @@
     /* The refresh is really an ugly hack, but we need to call doupdate()
        from time to time to catch the RESIZE events, because getch keep
        returning ERR until a real key is pressed :-(
+       However, it allows us to handle an autoaway check here...
      */
     if (key != ERR) {
       ret = process_key(key);
@@ -275,6 +276,7 @@
     } else if (refresh++ > 1) {
       doupdate();
       refresh = 0;
+      scr_CheckAutoAway(FALSE);
     }
 
     if (key != KEY_RESIZE)