changeset 1446:38f712e75836

[gaim-migrate @ 1456] i think this should work more better committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 30 Jan 2001 02:27:35 +0000
parents aebbe67e48cb
children 5df631739769
files src/idle.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;