Mercurial > hg
comparison mcabber/src/screen.c @ 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 | eb994ee40029 |
children | 6e4e667c5571 |
comparison
equal
deleted
inserted
replaced
338:7bd4ffee9497 | 339:e4ed1aec2988 |
---|---|
510 if (!autoaway_timeout) return; | 510 if (!autoaway_timeout) return; |
511 if (!LastActivity || activity) time(&LastActivity); | 511 if (!LastActivity || activity) time(&LastActivity); |
512 | 512 |
513 cur_st = jb_getstatus(); | 513 cur_st = jb_getstatus(); |
514 // Auto-away is disabled for the following states | 514 // Auto-away is disabled for the following states |
515 if ((cur_st == away) || (cur_st == notavail) || (cur_st == invisible)) | 515 if ((cur_st != available) && (cur_st != freeforchat)) |
516 return; | 516 return; |
517 | 517 |
518 if (!activity) { | 518 if (!activity) { |
519 time_t now; | 519 time_t now; |
520 time(&now); | 520 time(&now); |