libpurple/protocols/msn/notification.c

changeset 36281
017310ea69c0
parent 36257
c5445f25f90f
parent 36268
277fb538e26f
child 38328
722f62a4b0c2
--- a/libpurple/protocols/msn/notification.c	Thu Nov 13 03:58:07 2014 -0500
+++ b/libpurple/protocols/msn/notification.c	Sun Nov 23 23:20:53 2014 -0500
@@ -628,6 +628,15 @@
 		}
 
 		if (user->networkid != MSN_NETWORK_UNKNOWN) {
+			if ((user->list_op & (MSN_LIST_OP_MASK | MSN_LIST_PL_OP)) == MSN_LIST_FL_OP) {
+				purple_debug_warning("msn",
+				                     "User %s is on neither Allow nor Block list, "
+				                     "and not Pending addition; "
+				                     "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