pidgin/pidgin
Clone
Summary
Browse
Changes
Graph
msn: Workaround servers sending nearly-empty Allow list.
release-2.x.y
2014-11-18, Elliott Sales de Andrade
9afe309dc92a
Parents
f0c5f4056c51
Children
277fb538e26f
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.
1 files changed, 8 insertions(+), 0 deletions(-)
+8
-0
libpurple/protocols/msn/notification.c
--- 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);