diff options
author | Elliott Sales de Andrade <qulogic@pidgin.im> | 2014-11-18 22:34:52 -0500 |
---|---|---|
committer | Elliott Sales de Andrade <qulogic@pidgin.im> | 2014-11-18 22:34:52 -0500 |
commit | 2b652213d205dbe247eafd053d94fd0fad82e2a7 (patch) | |
tree | b3569440c8e2d40d2694d49346c77617c5af75e9 | |
parent | 588c21e23bb5e60faf0a4be72a6fb6e2e67d6666 (diff) | |
download | pidgin-2b652213d205dbe247eafd053d94fd0fad82e2a7.tar.gz |
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.
-rw-r--r-- | libpurple/protocols/msn/notification.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libpurple/protocols/msn/notification.c b/libpurple/protocols/msn/notification.c index 7c73dd8c4e..fff82e986f 100644 --- a/libpurple/protocols/msn/notification.c +++ b/libpurple/protocols/msn/notification.c @@ -628,6 +628,14 @@ msn_notification_dump_contact(MsnSession *session) } 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); |