libpurple/protocols/yahoo/libymsg.c

changeset 30429
33e8277ae908
parent 30266
5eb39cfb872a
child 30434
f20c37c4ff38
equal deleted inserted replaced
30428:502810a4b26e 30429:33e8277ae908
3642 void yahoo_login(PurpleAccount *account) { 3642 void yahoo_login(PurpleAccount *account) {
3643 PurpleConnection *gc = purple_account_get_connection(account); 3643 PurpleConnection *gc = purple_account_get_connection(account);
3644 YahooData *yd = gc->proto_data = g_new0(YahooData, 1); 3644 YahooData *yd = gc->proto_data = g_new0(YahooData, 1);
3645 PurpleStatus *status = purple_account_get_active_status(account); 3645 PurpleStatus *status = purple_account_get_active_status(account);
3646 gboolean use_whole_url = yahoo_account_use_http_proxy(gc); 3646 gboolean use_whole_url = yahoo_account_use_http_proxy(gc);
3647 gboolean proxy_ssl = purple_account_get_bool(account, "proxy_ssl", FALSE);
3647 PurpleUtilFetchUrlData *url_data; 3648 PurpleUtilFetchUrlData *url_data;
3648 3649
3649 gc->flags |= PURPLE_CONNECTION_HTML | PURPLE_CONNECTION_NO_BGCOLOR | PURPLE_CONNECTION_NO_URLDESC; 3650 gc->flags |= PURPLE_CONNECTION_HTML | PURPLE_CONNECTION_NO_BGCOLOR | PURPLE_CONNECTION_NO_URLDESC;
3650 3651
3651 purple_connection_update_progress(gc, _("Connecting"), 1, 2); 3652 purple_connection_update_progress(gc, _("Connecting"), 1, 2);
3676 yahoo_picture_check(account); 3677 yahoo_picture_check(account);
3677 3678
3678 /* Get the pager server. Actually start connecting in the callback since we 3679 /* Get the pager server. Actually start connecting in the callback since we
3679 * must have the contents of the HTTP response to proceed. */ 3680 * must have the contents of the HTTP response to proceed. */
3680 url_data = purple_util_fetch_url_request_len_with_account( 3681 url_data = purple_util_fetch_url_request_len_with_account(
3681 purple_connection_get_account(gc), 3682 proxy_ssl ? purple_connection_get_account(gc) : NULL,
3682 yd->jp ? YAHOOJP_PAGER_HOST_REQ_URL : YAHOO_PAGER_HOST_REQ_URL, 3683 yd->jp ? YAHOOJP_PAGER_HOST_REQ_URL : YAHOO_PAGER_HOST_REQ_URL,
3683 use_whole_url ? TRUE : FALSE, 3684 use_whole_url ? TRUE : FALSE,
3684 YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, -1, 3685 YAHOO_CLIENT_USERAGENT, TRUE, NULL, FALSE, -1,
3685 yahoo_got_pager_server, yd); 3686 yahoo_got_pager_server, yd);
3686 if (url_data) 3687 if (url_data)

mercurial