/pidgin/main: 9afe309dc92a: msn: Workaround servers sending near...

Elliott Sales de Andrade qulogic at pidgin.im
Tue Nov 18 22:35:06 EST 2014


Changeset: 9afe309dc92af8f41b5e576c8c4fb0851236cf28
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2014-11-18 22:34 -0500
Branch:	 release-2.x.y
URL: https://hg.pidgin.im/pidgin/main/rev/9afe309dc92a

Description:

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.

diffstat:

 libpurple/protocols/msn/notification.c |  8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diffs (18 lines):

diff --git a/libpurple/protocols/msn/notification.c b/libpurple/protocols/msn/notification.c
--- a/libpurple/protocols/msn/notification.c
+++ b/libpurple/protocols/msn/notification.c
@@ -628,6 +628,14 @@ msn_notification_dump_contact(MsnSession
 		}
 
 		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);



More information about the Commits mailing list