mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-19 13:59:39 +08:00
优化
This commit is contained in:
parent
98a652f440
commit
14786a94bf
@ -24,7 +24,7 @@ func (db *antidb) isInAntiList(uid, gid int64, msg string) bool {
|
|||||||
grp := strconv.FormatInt(gid, 36)
|
grp := strconv.FormatInt(gid, 36)
|
||||||
db.RLock()
|
db.RLock()
|
||||||
defer db.RUnlock()
|
defer db.RUnlock()
|
||||||
return db.CanFind(grp, "WHERE instr('"+msg+"', word)>=0")
|
return db.CanFind(grp, "WHERE instr('"+msg+"', word)>0")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (db *antidb) insertWord(gid int64, word string) error {
|
func (db *antidb) insertWord(gid int64, word string) error {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user