# HG changeset patch # User John Bailey # Date 1270346936 0 # Node ID 7081cefdd61a2cc21d1b11a8358344ba36a32302 # Parent 6d18b6221c5e94996e8e6bef1964ab0e71d7e30f 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. diff -r 6d18b6221c5e -r 7081cefdd61a libpurple/protocols/yahoo/libymsg.c --- a/libpurple/protocols/yahoo/libymsg.c Sat Apr 03 18:11:43 2010 +0000 +++ b/libpurple/protocols/yahoo/libymsg.c Sun Apr 04 02:08:56 2010 +0000 @@ -1736,6 +1736,8 @@ 244, yd->jp ? YAHOOJP_CLIENT_VERSION_ID : YAHOO_CLIENT_VERSION_ID, 2, name, 2, "1", + /* Should send key 59, value of bcookie here--need to fetch it first! */ + 98, purple_account_get_string(account, "room_list_locale", yd->jp ? "jp" : "us"), 135, yd->jp ? YAHOOJP_CLIENT_VERSION : YAHOO_CLIENT_VERSION); if (yd->picture_checksum) @@ -3529,7 +3531,7 @@ purple_connection_error_reason(gc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, _("Unable to connect: The server returned an empty response.")); } else { - strings = g_strsplit(url_text, "\n", -1); + strings = g_strsplit(url_text, "\r\n", -1); if((stringslen = g_strv_length(strings)) > 1) { int i;