Skip to content

Commit 0e2d717

Browse files
committed
添加ban人记忆
1 parent f5d2bd7 commit 0e2d717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/antiabuse/db.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func newantidb(path string) (*antidb, error) {
3737
}
3838
_ = db.FindFor("__bantime__", nilbt, "", func() error {
3939
t := time.Unix(nilbt.Time, 0)
40-
ttl := time.Until(t.Add(time.Hour * banhour)) // second
40+
ttl := time.Until(t.Add(time.Hour * banhour))
4141
if ttl < time.Minute {
4242
_ = managers.DoUnblock(nilbt.ID)
4343
return nil

0 commit comments

Comments
 (0)