diff libpurple/protocols/msn/contact.c @ 32488:760fd1f86a54

Send circle authentication on the notification server on MSNP18.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 03 Feb 2012 06:04:05 +0000
parents ab9025b46134
children ea3bd56a6092
line wrap: on
line diff
--- a/libpurple/protocols/msn/contact.c	Fri Feb 03 04:57:18 2012 +0000
+++ b/libpurple/protocols/msn/contact.c	Fri Feb 03 06:04:05 2012 +0000
@@ -871,6 +871,7 @@
 	xmlnode *groups;
 	xmlnode *contacts;
 	xmlnode *abNode;
+	xmlnode *circleNode;
 	xmlnode *fault;
 
 	if ((fault = xmlnode_get_child(node, "Body/Fault"))) {
@@ -954,6 +955,15 @@
 		g_free(tmp);
 	}
 
+	circleNode = xmlnode_get_child(result, "CircleResult/CircleTicket");
+	if (circleNode != NULL && session->protocol_ver >= 18) {
+		char *data;
+
+		data = xmlnode_get_data(circleNode);
+		msn_notification_send_circle_auth(session, data);
+		g_free(data);
+	}
+
 	return TRUE;
 }