src/protocols/icq/gaim_icq.c

changeset 4634
c4318fc60090
parent 4608
c165a90c65fc
child 4687
91ad36873636
--- a/src/protocols/icq/gaim_icq.c	Sun Mar 02 08:10:54 2003 +0000
+++ b/src/protocols/icq/gaim_icq.c	Sun Mar 02 18:48:02 2003 +0000
@@ -307,9 +307,13 @@
 static void icq_login(struct gaim_account *account) {
 	struct gaim_connection *gc = new_gaim_conn(account);
 	struct icq_data *id = gc->proto_data = g_new0(struct icq_data, 1);
+	struct gaim_proxy_info *gpi = account->gpi;
 	icq_Link *link;
 	char ps[9];
 
+	if(!gpi)
+		gpi = &global_proxy_info;
+
 	gc->checkbox = _("Send message through server");
 
 	icq_LogLevel = ICQ_LOG_MESSAGE;
@@ -338,8 +342,8 @@
 	link->icq_RequestNotify = icq_req_not;
 	link->icq_UserData = gc;
 
-	if (proxytype == PROXY_SOCKS5)
-		icq_SetProxy(link, proxyhost, proxyport, proxyuser[0], proxyuser, proxypass);
+	if (gpi->proxytype == PROXY_SOCKS5)
+		icq_SetProxy(link, gpi->proxyhost, gpi->proxyport, gpi->proxyuser[0], gpi->proxyuser, gpi->proxypass);
 
 	icq_ContactClear(id->link);
 

mercurial