Mercurial > hg
changeset 339:e4ed1aec2988
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.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 18 Jul 2005 22:47:52 +0100 |
parents | 7bd4ffee9497 |
children | 2362167ac0f3 |
files | mcabber/mcabberrc.example mcabber/src/screen.c |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) {