diff src/protocols/icq/gaim_icq.c @ 4634:d19872836812

[gaim-migrate @ 4941] This will let you set up different proxy settings for different accounts. Mainly useful to the corporate users that need to connect to an internal jabber server, and still want to connect to "external" stuff through a proxy, or something along those lines. I'm sure someone will come up with another use for it. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 02 Mar 2003 18:48:02 +0000
parents 5fcb44d771d2
children 283fb289c510
line wrap: on
line diff
--- 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);