diff src/idle.c @ 1141:8f4ce8b74901

[gaim-migrate @ 1151] bah committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 27 Nov 2000 02:45:07 +0000
parents c73736fa0b7c
children b5783215b245
line wrap: on
line diff
--- a/src/idle.c	Mon Nov 27 01:00:09 2000 +0000
+++ b/src/idle.c	Mon Nov 27 02:45:07 2000 +0000
@@ -78,13 +78,11 @@
 		a = g_slist_nth_data(away_messages, default_away);
 		do_away_message((GtkWidget*)NULL, a);
 		auto_is_away = 1;
-	} else if (auto_is_away == 1 && awaymessage != NULL &&
-		   idle_time < 60*auto_away) {
-		do_im_back((GtkWidget*)NULL, (GtkWidget*)NULL);
+	} else if (auto_is_away == 1 && idle_time < 60*auto_away) {
 		auto_is_away = 0;
+		if (awaymessage != NULL)
+			do_im_back((GtkWidget*)NULL, (GtkWidget*)NULL);
 	}
-	if (auto_is_away == 1 && awaymessage == NULL)
-		auto_is_away = 0;
 
 
 	/* If we're not reporting idle times to the server, still use Gaim