diff libpurple/protocols/msn/userlist.c @ 28749:819f464e581c

Make sure that libpurple core knows that a buddy is on the allow list just after accepting their add request. Previously, this was not a problem, and would go away at next login, but now that the core does its own client-side blocking, it appears as if newly added buddies can't talk to you. Fixes #10898.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Wed, 09 Dec 2009 03:02:03 +0000
parents c3f79073c9be
children 7aef89b92589
line wrap: on
line diff
--- a/libpurple/protocols/msn/userlist.c	Fri Dec 04 02:24:41 2009 +0000
+++ b/libpurple/protocols/msn/userlist.c	Wed Dec 09 03:02:03 2009 +0000
@@ -50,8 +50,11 @@
 	{
 		MsnSession *session = pa->gc->proto_data;
 		MsnUserList *userlist = session->userlist;
+		PurpleAccount *account = purple_connection_get_account(pa->gc);
 
 		msn_userlist_add_buddy_to_list(userlist, pa->who, MSN_LIST_AL);
+		purple_privacy_deny_remove(account, pa->who, TRUE);
+		purple_privacy_permit_add(account, pa->who, TRUE);
 
 		msn_del_contact_from_list(session, NULL, pa->who, MSN_LIST_PL);
 	}