qulogic/pidgin

msn: Update ADL.
draft msnp21
2015-03-10, Elliott Sales de Andrade
899149b334a1
Parents e5196af1860c
Children 5bb2385e53a9
msn: Update ADL.
--- a/libpurple/protocols/msn/notification.c Tue Dec 23 16:33:43 2014 -0500
+++ b/libpurple/protocols/msn/notification.c Tue Mar 10 00:47:11 2015 -0400
@@ -447,7 +447,7 @@
static void
msn_add_contact_xml(xmlnode *mlNode, const char *passport, MsnListOp list_op, MsnNetwork networkId)
{
- xmlnode *d_node,*c_node;
+ xmlnode *d_node, *c_node, *s_node;
char **tokens;
const char *email,*domain;
char fmt_str[3];
@@ -490,7 +490,16 @@
if (list_op != 0) {
purple_debug_info("msn", "list_op: %d\n", list_op);
g_snprintf(fmt_str, sizeof(fmt_str), "%d", list_op);
- xmlnode_set_attrib(c_node, "l", fmt_str);
+
+ /* IM service */
+ s_node = xmlnode_new_child(c_node, "s");
+ xmlnode_set_attrib(s_node, "l", fmt_str);
+ xmlnode_set_attrib(s_node, "n", "IM");
+
+ /* PE service */
+ s_node = xmlnode_new_child(c_node, "s");
+ xmlnode_set_attrib(s_node, "l", fmt_str);
+ xmlnode_set_attrib(s_node, "n", "PE");
}
if (networkId != MSN_NETWORK_UNKNOWN) {
@@ -615,7 +624,6 @@
/*get the userlist*/
for (l = session->userlist->users; l != NULL; l = l->next) {
user = l->data;
-
/* skip RL & PL during initial dump */
if (!(user->list_op & MSN_LIST_OP_MASK))
continue;