Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aimerneige committed Aug 10, 2022
1 parent 6427b27 commit 5baedb5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions setu.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *setu) Init() {
for _, user := range blacklistUserSlice {
blacklistUser = append(blacklistUser, int64(user))
}
allowedListSlice := config.GlobalConfig.GetIntSlice("aimerneige.setu.allowedlist")
allowedListSlice := config.GlobalConfig.GetIntSlice("aimerneige.setu.allowed")
for _, user := range allowedListSlice {
allowedList = append(allowedList, int64(user))
}
Expand Down Expand Up @@ -228,18 +228,18 @@ func getRequest(url string, queryList [][]string) ([]byte, error) {
return body, nil
}

func inBlacklist(userID int64) bool {
func inBlacklist(userUin int64) bool {
for _, v := range blacklistUser {
if userID == v {
if userUin == v {
return true
}
}
return false
}

func isAllowed(userID int64) bool {
func isAllowed(groupCode int64) bool {
for _, v := range allowedList {
if userID == v {
if groupCode == v {
return true
}
}
Expand Down

0 comments on commit 5baedb5

Please sign in to comment.