# HG changeset patch # User Eric Warmenhoven # Date 981281510 0 # Node ID 9db35684c68c434e3f2f7f6046963812f7f5d36e # Parent 7f7857c5036e5c02dac61e5432defef8b2ac3b10 [gaim-migrate @ 1478] bah. away acts funny enough as it is without auto-away fucking it up. committer: Tailor Script diff -r 7f7857c5036e -r 9db35684c68c src/idle.c --- 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); diff -r 7f7857c5036e -r 9db35684c68c src/multi.h --- a/src/multi.h Sun Feb 04 07:34:46 2001 +0000 +++ b/src/multi.h Sun Feb 04 10:11:50 2001 +0000 @@ -70,7 +70,7 @@ GtkWidget *status; char *away; - gboolean is_auto_away; + int is_auto_away; }; /* now that we have our struct, we're going to need lots of them. Maybe even a list of them. */