update
This commit is contained in:
+3
-1
@@ -102,7 +102,9 @@ func handleMessage(sender Sender) {
|
||||
if function.Admin && !sender.IsAdmin() {
|
||||
sender.Delete()
|
||||
sender.Disappear()
|
||||
sender.Reply("没有权限操作")
|
||||
if sender.GetImType() != "wx" || sender.GetImType() != "qq" {
|
||||
sender.Reply("没有权限操作")
|
||||
}
|
||||
sender.Finish()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -134,6 +134,7 @@ func initSys() {
|
||||
},
|
||||
{
|
||||
Rules: []string{"raw ^命令$"},
|
||||
Admin: true,
|
||||
Handle: func(s Sender) interface{} {
|
||||
s.Disappear()
|
||||
ss := []string{}
|
||||
|
||||
Reference in New Issue
Block a user