Tue, 18 Nov 2014 22:34:52 -0500
msn: Workaround servers sending nearly-empty Allow list.
If buddy is on neither Allow nor Block list, then add to Allow list.
At some point, we should figure out if the NetworkInfo really is used
for this sort of thing.
| libpurple/protocols/msn/notification.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/protocols/msn/notification.c Sat Nov 15 19:43:02 2014 -0500 +++ b/libpurple/protocols/msn/notification.c Tue Nov 18 22:34:52 2014 -0500 @@ -628,6 +628,14 @@ } if (user->networkid != MSN_NETWORK_UNKNOWN) { + if ((user->list_op & MSN_LIST_OP_MASK & ~MSN_LIST_FL_OP) == 0) { + purple_debug_warning("msn", + "User %s is on neither Allow nor Block list; " + "adding to Allow list.\n", + user->passport); + msn_user_set_op(user, MSN_LIST_AL_OP); + } + msn_add_contact_xml(adl_node, user->passport, user->list_op & MSN_LIST_OP_MASK, user->networkid);