soc.2008.yahoo: fe656da0: msn interoperability: change groups

sulabh at soc.pidgin.im sulabh at soc.pidgin.im
Wed Jan 21 04:21:38 EST 2009


-----------------------------------------------------------------
Revision: fe656da032cb72795dd0358684230951fd249797
Ancestor: dacbf5de76b303dbd8d283fdfc9305881c957105
Author: sulabh at soc.pidgin.im
Date: 2009-01-21T08:55:05
Branch: im.pidgin.soc.2008.yahoo
URL: http://d.pidgin.im/viewmtn/revision/info/fe656da032cb72795dd0358684230951fd249797

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

ChangeLog: 

msn interoperability: change groups

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/yahoo.c	da2def08224a12405b1937adf64c7823afbe7e68
+++ libpurple/protocols/yahoo/yahoo.c	0f46deb316092c9488562a595a4ff447af5b1463
@@ -5019,6 +5019,8 @@ static void yahoo_change_buddys_group(Pu
 	struct yahoo_packet *pkt;
 	char *gpn, *gpo;
 	YahooFriend *f = yahoo_friend_find(gc, who);
+	gboolean wlm = FALSE;
+	const char *temp = NULL;
 
 	/* Step 0:  If they aren't on the server list anyway,
 	 *          don't bother letting the server know.
@@ -5026,6 +5028,12 @@ static void yahoo_change_buddys_group(Pu
 	if (!f)
 		return;
 
+	if(f->protocol == 2)	{
+		wlm = TRUE;
+		temp = who+4;
+	} else
+		temp = who;
+
 	/* If old and new are the same, we would probably
 	 * end up deleting the buddy, which would be bad.
 	 * This might happen because of the charset conversation.
@@ -5041,11 +5049,11 @@ static void yahoo_change_buddys_group(Pu
 	pkt = yahoo_packet_new(YAHOO_SERVICE_CHGRP_15, YAHOO_STATUS_AVAILABLE, 0);
 	if(f->protocol)
 		yahoo_packet_hash(pkt, "ssssissss", 1, purple_connection_get_display_name(gc),
-	                  302, "240", 300, "240", 7, who, 241, f->protocol, 224, gpo, 264, gpn, 301,
+	                  302, "240", 300, "240", 7, temp, 241, f->protocol, 224, gpo, 264, gpn, 301,
 	                  "240", 303, "240");
 	else
 		yahoo_packet_hash(pkt, "ssssssss", 1, purple_connection_get_display_name(gc),
-	                  302, "240", 300, "240", 7, who, 224, gpo, 264, gpn, 301,
+	                  302, "240", 300, "240", 7, temp, 224, gpo, 264, gpn, 301,
 	                  "240", 303, "240");
 	yahoo_packet_send_and_free(pkt, yd);
 


More information about the Commits mailing list