soc.2010.msn-tlc: 66d24d59: Do not send the extended caps when using...

masca at cpw.pidgin.im masca at cpw.pidgin.im
Wed Jul 7 21:41:27 EDT 2010


----------------------------------------------------------------------
Revision: 66d24d59ff5f0bbb624616fad1519de153eeb3cd
Parent:   cc2567c1558bffb058fda6a6319faf70206a8c34
Author:   masca at cpw.pidgin.im
Date:     07/07/10 17:26:08
Branch:   im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/66d24d59ff5f0bbb624616fad1519de153eeb3cd

Changelog: 

Do not send the extended caps when using msnp < 16.

Changes against parent cc2567c1558bffb058fda6a6319faf70206a8c34

  patched  libpurple/protocols/msn/notification.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c	4b98869b30b176275315c59c21db36215dba7fe2
+++ libpurple/protocols/msn/notification.c	1156841b93769e7ab848af766760a61e9bc4f915
@@ -1812,7 +1812,10 @@ void msn_notification_send_uux_endpointd
 	epDataNode = xmlnode_new("EndpointData");
 
 	capNode = xmlnode_new_child(epDataNode, "Capabilities");
-	caps = g_strdup_printf("%d:%02d", MSN_CLIENT_ID_CAPABILITIES, MSN_CLIENT_ID_EXT_CAPS);
+	if (session->protocol_ver >= 16)
+		caps = g_strdup_printf("%d:%02d", MSN_CLIENT_ID_CAPABILITIES, MSN_CLIENT_ID_EXT_CAPS);
+	else
+		caps = g_strdup_printf("%d", MSN_CLIENT_ID_CAPABILITIES);
 	xmlnode_insert_data(capNode, caps, -1);
 	g_free(caps);
 


More information about the Commits mailing list