# HG changeset patch # User Mikael Berthe # Date 1121723272 -3600 # Node ID e4ed1aec298891984fcf15bde9a4165c20abb95d # Parent 7bd4ffee9497c578d6578c74ded5f4875fd89c73 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. diff -r 7bd4ffee9497 -r e4ed1aec2988 mcabber/mcabberrc.example --- 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 diff -r 7bd4ffee9497 -r e4ed1aec2988 mcabber/src/screen.c --- 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) {