# HG changeset patch # User Eric Warmenhoven # Date 991441345 0 # Node ID 39df68320a823c6bf24a6d4d46736db35a9c97ca # Parent 44eeb88281983a6041996c07efa619be846f4e26 [gaim-migrate @ 1962] i think this is more better. committer: Tailor Script diff -r 44eeb8828198 -r 39df68320a82 src/idle.c --- a/src/idle.c Sat Jun 02 00:17:38 2001 +0000 +++ b/src/idle.c Sat Jun 02 00:22:25 2001 +0000 @@ -68,15 +68,15 @@ idle_time = t - gc->lastsent; if ((general_options & OPT_GEN_AUTO_AWAY) && (idle_time > (60 * auto_away)) && - (!gc->is_auto_away) && (!gc->away)) { - debug_printf("making %s away automatically\n", gc->username); - set_default_away((GtkWidget*)NULL, (gpointer)g_slist_index(away_messages, default_away)); + (!gc->is_auto_away)) { if (!gc->away) { + debug_printf("making %s away automatically\n", gc->username); if (g_slist_length(connections) == 1) do_away_message(NULL, default_away); else if (default_away) serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); gc->is_auto_away = 1; + set_default_away(NULL, (gpointer)g_slist_index(away_messages, default_away)); } else gc->is_auto_away = 2; } else if (gc->is_auto_away && idle_time < 60 * auto_away) {