changeset 631:d96b511972fe

[gaim-migrate @ 641] let's try to make this a little smarter, eh? it didn't work so good with oscar. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 07 Aug 2000 05:58:03 +0000
parents 3d2f14064083
children 21c63b26c604
files plugins/autorecon.c
diffstat 1 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/autorecon.c	Mon Aug 07 05:50:17 2000 +0000
+++ b/plugins/autorecon.c	Mon Aug 07 05:58:03 2000 +0000
@@ -20,18 +20,26 @@
 extern void dologin(GtkWidget *, GtkWidget *);
 
 void do_signon() {
-	dologin(NULL, NULL);
-	if (blist) {
+	if (!blist)
+		dologin(NULL, NULL);
+	if (!USE_OSCAR) {
+		if (blist) {
+			gtk_timeout_remove(recon);
+			forced_off = 0;
+			if (away_state)
+				do_away_message(NULL, last_away);
+			return;
+		}
+	} else {
 		gtk_timeout_remove(recon);
 		forced_off = 0;
-		if (away_state)
-			do_away_message(NULL, last_away);
+		if (blist && away_state) do_away_message(NULL, last_away);
 		return;
 	}
 }
 
 void reconnect(void *m) {
-	recon = gtk_timeout_add(2000, (GtkFunction)do_signon, NULL);
+	recon = gtk_timeout_add(8000, (GtkFunction)do_signon, NULL);
 	forced_off = 1;
 }