changeset 1952:39df68320a82

[gaim-migrate @ 1962] i think this is more better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 02 Jun 2001 00:22:25 +0000
parents 44eeb8828198
children f0ff0b367e3d
files src/idle.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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) {