changeset 1493:e12fa57b9ef9

[gaim-migrate @ 1503] icq works again :-P committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 21 Feb 2001 19:17:27 +0000
parents 638b57b1801d
children 13bbf7b8f920
files plugins/icq/gaim_icq.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/icq/gaim_icq.c	Sat Feb 17 00:08:45 2001 +0000
+++ b/plugins/icq/gaim_icq.c	Wed Feb 21 19:17:27 2001 +0000
@@ -97,10 +97,6 @@
 	gc->options |= OPT_USR_KEEPALV;
 	serv_finish_login(gc);
 
-	icq_ContactClear(id->link);
-	if (bud_list_cache_exists(gc))
-		do_import(NULL, gc);
-
 	icq_ChangeStatus(id->link, STATUS_ONLINE);
 }
 
@@ -245,9 +241,6 @@
 	struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);
 	ICQLINK *link;
 
-	if (!icq_SocketNotify)
-		icq_SocketNotify = icq_sock_notify;
-
 	icq_LogLevel = ICQ_LOG_MESSAGE;
 
 	link = id->link = icq_ICQLINKNew(atol(user->username), user->password,
@@ -269,6 +262,10 @@
 	link->icq_Log = icq_do_log;
 	link->icq_SetTimeout = icq_set_timeout;
 
+	icq_ContactClear(id->link);
+	if (bud_list_cache_exists(gc))
+		do_import(NULL, gc);
+
 	icq_UnsetProxy(link);
 
 	if (icq_Connect(link, "icq.mirabilis.com", 4000) < 1) {
@@ -483,6 +480,7 @@
 }
 
 char *gaim_plugin_init(GModule *handle) {
+	icq_SocketNotify = icq_sock_notify;
 	load_protocol(icq_init, sizeof(struct prpl));
 	return NULL;
 }