libpurple/protocols/msn/notification.c

branch
release-2.x.y
changeset 36267
9afe309dc92a
parent 36256
a437550a9308
child 36268
277fb538e26f
--- 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);

mercurial