mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
💩👌 make lint happy
This commit is contained in:
parent
6f1ec04ac8
commit
fafe24f1e4
@ -65,7 +65,7 @@ func init() {
|
||||
msg = strings.ReplaceAll(msg, "\r", "")
|
||||
msg = strings.ReplaceAll(msg, "\t", "")
|
||||
msg = strings.ReplaceAll(msg, ";", "")
|
||||
if db.isInAntiList(uid, gid, msg) {
|
||||
if db.isInAntiList(gid, msg) {
|
||||
if err := ctx.State["manager"].(*ctrl.Control[*zero.Ctx]).Manager.DoBlock(uid); err == nil {
|
||||
t := time.Now().Unix()
|
||||
cache.Set(uid, struct{}{})
|
||||
|
||||
@ -50,7 +50,7 @@ func newantidb(path string) (*antidb, error) {
|
||||
return db, nil
|
||||
}
|
||||
|
||||
func (db *antidb) isInAntiList(uid, gid int64, msg string) bool {
|
||||
func (db *antidb) isInAntiList(gid int64, msg string) bool {
|
||||
grp := strconv.FormatInt(gid, 36)
|
||||
db.RLock()
|
||||
defer db.RUnlock()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user