[gaim-migrate @ 641]

Mon, 07 Aug 2000 05:58:03 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Mon, 07 Aug 2000 05:58:03 +0000
changeset 631
1f80f978e847
parent 630
6097b92591ff
child 632
9952084984db

[gaim-migrate @ 641]
let's try to make this a little smarter, eh? it didn't work so good with oscar.

plugins/autorecon.c file | annotate | diff | comparison | revisions
--- 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;
 }
 

mercurial