From 3e2eb371edd7fab773e5540130aa997b7edd598d Mon Sep 17 00:00:00 2001 From: axiangcoding Date: Sat, 25 Mar 2023 01:53:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=92=E7=BB=9D=E9=9D=9E=E8=B6=85=E7=AE=A1?= =?UTF-8?q?=E9=82=80=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api-system/internal/service/cqhttp_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-system/internal/service/cqhttp_service.go b/api-system/internal/service/cqhttp_service.go index b382611..653676d 100644 --- a/api-system/internal/service/cqhttp_service.go +++ b/api-system/internal/service/cqhttp_service.go @@ -219,7 +219,7 @@ func handleAddGroup(event *cqhttp.CommonEvent) { userId := event.UserId groupConfig := MustFindGroupConfig(groupId) userConfig := MustFindUserConfig(userId) - if (groupConfig == nil || !(*groupConfig.Banned)) && (userConfig == nil || !(*userConfig.Banned)) { + if (groupConfig == nil || !(*groupConfig.Banned)) && (userConfig == nil || !(*userConfig.Banned)) && (userConfig.SuperAdmin != nil && *userConfig.SuperAdmin) { cqhttp.MustAcceptInviteToGroup(event.Flag, event.SubType, true, "") } else { logging.L().Warn("application for joining the group was rejected",