From 0e2d717aa679fd606c6534cc1e75d3daa0f3331e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 6 Sep 2022 21:24:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ban=E4=BA=BA=E8=AE=B0?= =?UTF-8?q?=E5=BF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/antiabuse/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/antiabuse/db.go b/plugin/antiabuse/db.go index 119faed4..c58d5c11 100644 --- a/plugin/antiabuse/db.go +++ b/plugin/antiabuse/db.go @@ -37,7 +37,7 @@ func newantidb(path string) (*antidb, error) { } _ = db.FindFor("__bantime__", nilbt, "", func() error { t := time.Unix(nilbt.Time, 0) - ttl := time.Until(t.Add(time.Hour * banhour)) // second + ttl := time.Until(t.Add(time.Hour * banhour)) if ttl < time.Minute { _ = managers.DoUnblock(nilbt.ID) return nil