pidgin: aada73f0: Make sure that libpurple core knows that...

qulogic at pidgin.im qulogic at pidgin.im
Wed Dec 9 01:22:31 EST 2009


-----------------------------------------------------------------
Revision: aada73f0d8a35997280d570f47caf30907fe68df
Ancestor: 1cd91846f484f7d7090d25b0e65d851a0dadcb90
Author: qulogic at pidgin.im
Date: 2009-12-09T03:02:03
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/aada73f0d8a35997280d570f47caf30907fe68df

Modified files:
        libpurple/protocols/msn/userlist.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/userlist.c	e72232eaee1d9913e7057aee1408ddbe22763039
+++ libpurple/protocols/msn/userlist.c	0d68ddaa46c5082561f9377f982957472037d0c4
@@ -50,8 +50,11 @@ msn_accept_add_cb(gpointer data)
 	{
 		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);
 	}


More information about the Commits mailing list