This commit is contained in:
cdle
2021-10-17 22:18:30 +08:00
parent f7af8e2960
commit c2b5c9413c
+2
View File
@@ -7,6 +7,7 @@ import (
"regexp"
"strings"
"github.com/beego/beego/v2/core/logs"
cron "github.com/robfig/cron/v3"
)
@@ -141,6 +142,7 @@ func handleMessage(sender Sender) {
}
}
if matched {
logs.Info("%v ==> %v", sender.GetContent(), rule)
if function.Admin && !sender.IsAdmin() {
sender.Delete()
sender.Disappear()