This commit is contained in:
fumiama 2021-09-26 10:24:46 +08:00
parent bc23211f23
commit a588ec9d18

View File

@ -77,9 +77,8 @@ func (m *Control) isEnabledIn(gid int64) bool {
m.RUnlock() m.RUnlock()
logrus.Debugf("[control] plugin %s of grp %d : %d", m.service, c.GroupID, c.Disable) logrus.Debugf("[control] plugin %s of grp %d : %d", m.service, c.GroupID, c.Disable)
return c.Disable == 0 return c.Disable == 0
} else {
logrus.Errorf("[control] %v", err)
} }
logrus.Errorf("[control] %v", err)
m.RUnlock() m.RUnlock()
if m.options.DisableOnDefault { if m.options.DisableOnDefault {
m.disable(gid) m.disable(gid)