Update of /cvsroot/gaim/gaim/src/protocols/icq
In directory sc8-pr-cvs1:/tmp/cvs-serv4143/src/protocols/icq
Modified Files:
gaim_icq.c
Log Message:
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.
Index: gaim_icq.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/protocols/icq/gaim_icq.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- gaim_icq.c 24 Feb 2003 00:29:52 -0000 1.37
+++ gaim_icq.c 2 Mar 2003 18:47:59 -0000 1.38
@@ -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);
|