changeset 23935:2457162f6750

Apparently messenger@microsoft.com is some sort of server-side buddy that always exists in your AB Block list, but you shouldn't try to add it to your Contact List, so now we won't. Fixes #6440.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Thu, 21 Aug 2008 05:23:47 +0000
parents 93a9cef58d05
children 54432ea0a5ab 2d7a8d15f3a3
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	Wed Aug 20 00:34:16 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Thu Aug 21 05:23:47 2008 +0000
@@ -613,13 +613,16 @@
 	xmlnode_set_attrib(adl_node, "l", "1");
 
 	/*get the userlist*/
-	for (l = session->userlist->users; l != NULL; l = l->next){
+	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;
 
+		if (!strcmp(user->passport, "messenger@microsoft.com"))
+			continue;
+
 		msn_add_contact_xml(session, adl_node, user->passport,
 			user->list_op & MSN_LIST_OP_MASK, user->networkid);