Make adding buddies work again for yahoo.

Thu, 12 Jul 2007 11:40:17 +0000

author
Tim Ringenbach <marv@pidgin.im>
date
Thu, 12 Jul 2007 11:40:17 +0000
changeset 19330
a2e7ef0cab90
parent 19329
2acabedbaa3e
child 19339
4b396c53da73

Make adding buddies work again for yahoo.
This was mostly trial and error. I left out the first and last name
arguments because they didn't seem to be required. The order did seem
to matter. I don't know what most of the attributes I added mean,
except 97 which is usually UTF-8.

libpurple/protocols/yahoo/yahoo.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/yahoo/yahoo.c	Wed Jul 11 15:22:27 2007 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Thu Jul 12 11:40:17 2007 +0000
@@ -3681,8 +3681,18 @@
 
 	group2 = yahoo_string_encode(gc, group, NULL);
 	pkt = yahoo_packet_new(YAHOO_SERVICE_ADDBUDDY, YAHOO_STATUS_AVAILABLE, 0);
-	yahoo_packet_hash(pkt, "ssss", 1, purple_connection_get_display_name(gc),
-	                  7, buddy->name, 65, group2, 14, "");
+	yahoo_packet_hash(pkt, "ssssssssss",
+	                  14, "",
+	                  65, group2,
+	                  97, "1",
+	                  1, purple_connection_get_display_name(gc),
+	                  302, "319",
+	                  300, "319",
+	                  7, buddy->name,
+	                  334, "0",
+	                  301, "319",
+	                  303, "319"
+	);
 	yahoo_packet_send_and_free(pkt, yd);
 	g_free(group2);
 }

mercurial