changeset 19190:5e297b409b3a

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.
author Tim Ringenbach <marv@pidgin.im>
date Thu, 12 Jul 2007 11:40:17 +0000
parents 07413ddcd49c
children b39aa44b9769
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }