This commit is contained in:
cdle
2021-09-02 22:23:14 +08:00
parent 7531fd5ece
commit 8f4146b7bb
5 changed files with 14 additions and 7 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func handleMessage(sender im.Sender) {
}
}
if matched {
if function.Admin && sender.IsAdmin() {
if function.Admin && !sender.IsAdmin() {
sender.Reply("没有权限操作")
return
}