mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
✏️ 修复 control 全局禁用
This commit is contained in:
parent
2917ff6701
commit
35f7450ab2
@ -103,7 +103,7 @@ func (m *Control) IsEnabledIn(gid int64) bool {
|
||||
m.RLock()
|
||||
err = db.Find(m.service, &c, "WHERE gid = 0")
|
||||
m.RUnlock()
|
||||
if err == nil && gid == 0 {
|
||||
if err == nil && c.GroupID == 0 {
|
||||
logrus.Debugf("[control] plugin %s of all : %d", m.service, c.Disable)
|
||||
return c.Disable == 0
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user