[gaim-migrate @ 2529]

Tue, 16 Oct 2001 18:12:33 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Tue, 16 Oct 2001 18:12:33 +0000
changeset 2516
3a7ddfa45c3a
parent 2515
6565ac055c1b
child 2517
b61cca95c708

[gaim-migrate @ 2529]
so is this

src/protocols/icq/gaim_icq.c file | annotate | diff | comparison | revisions
--- a/src/protocols/icq/gaim_icq.c	Tue Oct 16 18:11:15 2001 +0000
+++ b/src/protocols/icq/gaim_icq.c	Tue Oct 16 18:12:33 2001 +0000
@@ -80,11 +80,12 @@
 	struct gaim_connection *gc = link->icq_UserData;
 	struct icq_data *id = (struct icq_data *)gc->proto_data;
 	debug_printf("%s is now online.\n", gc->username);
-	id->connected = TRUE;
-	account_online(gc);
-	serv_finish_login(gc);
-
-	icq_ChangeStatus(id->link, STATUS_ONLINE);
+	if (!id->connected) {
+		account_online(gc);
+		serv_finish_login(gc);
+		icq_ChangeStatus(id->link, STATUS_ONLINE);
+		id->connected = TRUE;
+	}
 }
 
 static void icq_logged_off(icq_Link *link) {
@@ -103,8 +104,7 @@
 		return;
 	}
 
-	icq_Login(link, STATUS_ONLINE);
-	id->cur_status = STATUS_ONLINE;
+	icq_Login(link, id->cur_status);
 }
 
 void strip_linefeed(gchar *text)
@@ -319,8 +319,8 @@
 		return;
 	}
 
+	id->cur_status = STATUS_ONLINE;
 	icq_Login(link, STATUS_ONLINE);
-	id->cur_status = STATUS_ONLINE;
 
 	set_login_progress(gc, 0, "Connecting...");
 }

mercurial