# HG changeset patch # User Eric Warmenhoven # Date 980821655 0 # Node ID 38f712e75836999720bb0354e399687e9df157a4 # Parent aebbe67e48cbe56bb62a35a816a6356be485812b [gaim-migrate @ 1456] i think this should work more better committer: Tailor Script diff -r aebbe67e48cb -r 38f712e75836 src/idle.c --- a/src/idle.c Mon Jan 29 09:22:43 2001 +0000 +++ b/src/idle.c Tue Jan 30 02:27:35 2001 +0000 @@ -68,10 +68,15 @@ idle_time = t - gc->lastsent; if ((general_options & OPT_GEN_AUTO_AWAY) && (idle_time > (60 * auto_away)) && - (!gc->away) && (!gc->is_auto_away)) { + (!gc->is_auto_away)) { debug_printf("making %s away automatically\n", gc->username); set_default_away((GtkWidget*)NULL, (gpointer)g_slist_index(away_messages, default_away)); - serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); + if (!gc->away) { + if (g_slist_length(connections) == 1) + do_away_message(NULL, default_away); + else + serv_set_away(gc, GAIM_AWAY_CUSTOM, default_away->message); + } gc->is_auto_away = TRUE; } else if (gc->is_auto_away && idle_time < 60 * auto_away) { gc->is_auto_away = FALSE;