Mercurial > pidgin.yaz
comparison libpurple/protocols/yahoo/libymsg.c @ 30083:7081cefdd61a
Small tweaks:
* Split the CS lookup response on \r\n, not just \n.
* Send key 59 with a value of the configured roomlist locale for the account
during login.
The key 59 addition may fix some weird Yahoo Chat issues, but I haven't tested
in great detail. This makes us appear a bit more like the official client.
author | John Bailey <rekkanoryo@rekkanoryo.org> |
---|---|
date | Sun, 04 Apr 2010 02:08:56 +0000 |
parents | 6d18b6221c5e |
children | 34d787feb17c 911f51eb04fd |
comparison
equal
deleted
inserted
replaced
30081:6d18b6221c5e | 30083:7081cefdd61a |
---|---|
1734 278, yd->cookie_t, | 1734 278, yd->cookie_t, |
1735 307, base64_string, | 1735 307, base64_string, |
1736 244, yd->jp ? YAHOOJP_CLIENT_VERSION_ID : YAHOO_CLIENT_VERSION_ID, | 1736 244, yd->jp ? YAHOOJP_CLIENT_VERSION_ID : YAHOO_CLIENT_VERSION_ID, |
1737 2, name, | 1737 2, name, |
1738 2, "1", | 1738 2, "1", |
1739 /* Should send key 59, value of bcookie here--need to fetch it first! */ | |
1740 98, purple_account_get_string(account, "room_list_locale", yd->jp ? "jp" : "us"), | |
1739 135, yd->jp ? YAHOOJP_CLIENT_VERSION : YAHOO_CLIENT_VERSION); | 1741 135, yd->jp ? YAHOOJP_CLIENT_VERSION : YAHOO_CLIENT_VERSION); |
1740 | 1742 |
1741 if (yd->picture_checksum) | 1743 if (yd->picture_checksum) |
1742 yahoo_packet_hash_int(pkt, 192, yd->picture_checksum); | 1744 yahoo_packet_hash_int(pkt, 192, yd->picture_checksum); |
1743 yahoo_packet_send_and_free(pkt, yd); | 1745 yahoo_packet_send_and_free(pkt, yd); |
3527 G_GSIZE_FORMAT " bytes retrieved with error message: %s\n", len, | 3529 G_GSIZE_FORMAT " bytes retrieved with error message: %s\n", len, |
3528 error_message ? error_message : "(null)"); | 3530 error_message ? error_message : "(null)"); |
3529 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 3531 purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
3530 _("Unable to connect: The server returned an empty response.")); | 3532 _("Unable to connect: The server returned an empty response.")); |
3531 } else { | 3533 } else { |
3532 strings = g_strsplit(url_text, "\n", -1); | 3534 strings = g_strsplit(url_text, "\r\n", -1); |
3533 | 3535 |
3534 if((stringslen = g_strv_length(strings)) > 1) { | 3536 if((stringslen = g_strv_length(strings)) > 1) { |
3535 int i; | 3537 int i; |
3536 | 3538 |
3537 for(i = 0; i < stringslen; i++) { | 3539 for(i = 0; i < stringslen; i++) { |