pidgin: 3ef9bbfa: Small tweaks:

rekkanoryo at pidgin.im rekkanoryo at pidgin.im
Sat Apr 3 22:10:40 EDT 2010


-----------------------------------------------------------------
Revision: 3ef9bbfad62576f3db5044c28101c08446179946
Ancestor: 465c5796090f150d2555e873a0b38b61d7dbe0ac
Author: rekkanoryo at pidgin.im
Date: 2010-04-04T02:08:56
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3ef9bbfad62576f3db5044c28101c08446179946

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	3c75a9bd7621e4bbd428e40d6e285155c930b705
+++ libpurple/protocols/yahoo/libymsg.c	0cc0f96588d7fa02689816752e58546acef4b0ce
@@ -1736,6 +1736,8 @@ static void yahoo_auth16_stage3(PurpleCo
 				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 @@ static void yahoo_got_pager_server(Purpl
 		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;


More information about the Commits mailing list