Mercurial > pidgin.yaz
changeset 1468:9db35684c68c
[gaim-migrate @ 1478]
bah. away acts funny enough as it is without auto-away fucking it up.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 04 Feb 2001 10:11:50 +0000 |
parents | 7f7857c5036e |
children | d74112de59ed |
files | src/idle.c src/multi.h |
diffstat | 2 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/idle.c Sun Feb 04 07:34:46 2001 +0000 +++ b/src/idle.c Sun Feb 04 10:11:50 2001 +0000 @@ -76,10 +76,15 @@ do_away_message(NULL, default_away); else serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); + gc->is_auto_away = 1; + } else + gc->is_auto_away = 2; + } else if (gc->is_auto_away && idle_time < 60 * auto_away) { + if (gc->is_auto_away == 2) { + gc->is_auto_away = 0; + return; } - gc->is_auto_away = TRUE; - } else if (gc->is_auto_away && idle_time < 60 * auto_away) { - gc->is_auto_away = FALSE; + gc->is_auto_away = 0; if (awaymessage == NULL) { debug_printf("removing auto-away message for %s\n", gc->username); serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL);