Auto-away improvement
Auto-away only change the status if it is available (i.e. online) or
free-for-chat. Other status are left alone.
--- a/mcabber/mcabberrc.example Mon Jul 18 21:49:18 2005 +0100
+++ b/mcabber/mcabberrc.example Mon Jul 18 22:47:52 2005 +0100
@@ -28,7 +28,8 @@
# Set the auto-away timeout, in seconds. If set to a value >0,
# mcabber will change your status to away if no real activity is detected
-# (command, message, move in the buddylist...)
+# (command, message, move in the buddylist...). Note: auto-away only changes
+# the status when it is "available" (online) or "free_for_chat".
#set autoaway = 0
# History logging
--- a/mcabber/src/screen.c Mon Jul 18 21:49:18 2005 +0100
+++ b/mcabber/src/screen.c Mon Jul 18 22:47:52 2005 +0100
@@ -512,7 +512,7 @@
cur_st = jb_getstatus();
// Auto-away is disabled for the following states
- if ((cur_st == away) || (cur_st == notavail) || (cur_st == invisible))
+ if ((cur_st != available) && (cur_st != freeforchat))
return;
if (!activity) {