private void OnJoinRequested(JoinGroupRequestMessage message) { List<long> blackList = config.GetBlackList(); if (blackList == null || !blackList.Contains(message.MemberTrueUin)) { webqq.AcceptJoinRequest(message); } }
private static JoinGroupRequestMessage ParseJoinGroupRequestMessage(JsonValue item) { JoinGroupRequestMessage systemMessage = new JoinGroupRequestMessage(); InitBaseGroupMessage(item, systemMessage); systemMessage.MemberUin = item["request_uin"]; systemMessage.MemberTrueUin = item["t_request_uin"]; systemMessage.RequestMessage = item["msg"]; return systemMessage; }