diff src/idle.c @ 1450:024f9250ba63

[gaim-migrate @ 1460] hi there committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 31 Jan 2001 07:36:01 +0000
parents 38f712e75836
children 9db35684c68c
line wrap: on
line diff
--- a/src/idle.c	Wed Jan 31 04:15:18 2001 +0000
+++ b/src/idle.c	Wed Jan 31 07:36:01 2001 +0000
@@ -84,8 +84,12 @@
 			debug_printf("removing auto-away message for %s\n", gc->username);
 			serv_set_away(gc, GAIM_AWAY_CUSTOM, NULL);
 		} else {
-			debug_printf("replacing auto-away with global for %s\n", gc->username);
-			serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message);
+			if (g_slist_length(connections) == 1)
+				do_im_back(0, 0);
+			else {
+				debug_printf("replacing auto-away with global for %s\n", gc->username);
+				serv_set_away(gc, GAIM_AWAY_CUSTOM, awaymessage->message);
+			}
 		}
 	}