changeset 30875:c49697f075cf

applied changes from cc2567c1558bffb058fda6a6319faf70206a8c34 through 66d24d59ff5f0bbb624616fad1519de153eeb3cd
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 01 Aug 2010 00:08:26 +0000
parents e53f81486d57
children 6469c68fa093
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Sat Jul 31 23:42:35 2010 +0000
+++ b/libpurple/protocols/msn/notification.c	Sun Aug 01 00:08:26 2010 +0000
@@ -1807,7 +1807,10 @@
 	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);