diff src/protocols/irc/irc.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 69f028a6f357
children 3145c5c45877
line wrap: on
line diff
--- a/src/protocols/irc/irc.c	Sun Mar 02 08:10:54 2003 +0000
+++ b/src/protocols/irc/irc.c	Sun Mar 02 18:48:02 2003 +0000
@@ -1221,7 +1221,7 @@
 static void 
 dcc_chat_init(struct dcc_chat *data) {
 	if (g_slist_find(connections, data->gc)) {
-		proxy_connect(data->ip_address, data->port, dcc_chat_callback, data);
+		proxy_connect(data->gc->account, data->ip_address, data->port, dcc_chat_callback, data);
 	} else {
 		g_free(data);
 	}
@@ -1816,7 +1816,7 @@
 	idata->str = g_string_new("");
 	idata->fd = -1;
 
-	rc = proxy_connect(account->proto_opt[USEROPT_SERV],
+	rc = proxy_connect(account, account->proto_opt[USEROPT_SERV],
 				  account->proto_opt[USEROPT_PORT][0] ?
 				  atoi(account->proto_opt[USEROPT_PORT]) : 6667,
 				  irc_login_callback, gc);
@@ -2603,7 +2603,7 @@
 	struct irc_file_transfer *ift = find_ift_by_xfer(gc, xfer);
 
 	ift->xfer = xfer;
-	proxy_connect(ift->ip, ift->port, dcc_recv_callback, ift);
+	proxy_connect(gc->account, ift->ip, ift->port, dcc_recv_callback, ift);
 }
 #endif