comparison 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
comparison
equal deleted inserted replaced
4633:812148fb2e2f 4634:d19872836812
1219 } 1219 }
1220 1220
1221 static void 1221 static void
1222 dcc_chat_init(struct dcc_chat *data) { 1222 dcc_chat_init(struct dcc_chat *data) {
1223 if (g_slist_find(connections, data->gc)) { 1223 if (g_slist_find(connections, data->gc)) {
1224 proxy_connect(data->ip_address, data->port, dcc_chat_callback, data); 1224 proxy_connect(data->gc->account, data->ip_address, data->port, dcc_chat_callback, data);
1225 } else { 1225 } else {
1226 g_free(data); 1226 g_free(data);
1227 } 1227 }
1228 } 1228 }
1229 1229
1814 idata->chanmodes = g_strdup("beI,k,lnt"); 1814 idata->chanmodes = g_strdup("beI,k,lnt");
1815 idata->nickmodes = g_strdup("ohv"); 1815 idata->nickmodes = g_strdup("ohv");
1816 idata->str = g_string_new(""); 1816 idata->str = g_string_new("");
1817 idata->fd = -1; 1817 idata->fd = -1;
1818 1818
1819 rc = proxy_connect(account->proto_opt[USEROPT_SERV], 1819 rc = proxy_connect(account, account->proto_opt[USEROPT_SERV],
1820 account->proto_opt[USEROPT_PORT][0] ? 1820 account->proto_opt[USEROPT_PORT][0] ?
1821 atoi(account->proto_opt[USEROPT_PORT]) : 6667, 1821 atoi(account->proto_opt[USEROPT_PORT]) : 6667,
1822 irc_login_callback, gc); 1822 irc_login_callback, gc);
1823 if (!account->gc || (rc != 0)) { 1823 if (!account->gc || (rc != 0)) {
1824 hide_login_progress(gc, "Unable to create socket"); 1824 hide_login_progress(gc, "Unable to create socket");
2601 struct file_transfer *xfer, int offset) { 2601 struct file_transfer *xfer, int offset) {
2602 2602
2603 struct irc_file_transfer *ift = find_ift_by_xfer(gc, xfer); 2603 struct irc_file_transfer *ift = find_ift_by_xfer(gc, xfer);
2604 2604
2605 ift->xfer = xfer; 2605 ift->xfer = xfer;
2606 proxy_connect(ift->ip, ift->port, dcc_recv_callback, ift); 2606 proxy_connect(gc->account, ift->ip, ift->port, dcc_recv_callback, ift);
2607 } 2607 }
2608 #endif 2608 #endif
2609 2609
2610 static void 2610 static void
2611 irc_ctcp_clientinfo(struct gaim_connection *gc, char *who) 2611 irc_ctcp_clientinfo(struct gaim_connection *gc, char *who)