summaryrefslogtreecommitdiffstats
path: root/txrban.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-11 11:27:44 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-11 11:27:44 -0700
commit3539d92a0260a2095a16bc61ada6a76e48120dac (patch)
treee5834ae790cc39b9b58bf6bfe7eb6a4d3c4e7a56 /txrban.txr
parentef8a9cfbe5dc8723d9098c8a14b8007095b72f63 (diff)
downloadtxrban-3539d92a0260a2095a16bc61ada6a76e48120dac.tar.gz
txrban-3539d92a0260a2095a16bc61ada6a76e48120dac.tar.bz2
txrban-3539d92a0260a2095a16bc61ada6a76e48120dac.zip
expiry: bugfix: failing to delete unbanned clients.HEADmaster
Diffstat (limited to 'txrban.txr')
-rw-r--r--txrban.txr6
1 files changed, 3 insertions, 3 deletions
diff --git a/txrban.txr b/txrban.txr
index 355bacf..27b5c10 100644
--- a/txrban.txr
+++ b/txrban.txr
@@ -83,9 +83,9 @@
(defun do-expiry (now-time)
(dohash (ip cli client-hash)
(when (and cli.banned (<= (to cli.banned) now-time))
- (unban cli)
- (when (null cli.access-hist)
- (del [client-hash ip])))))
+ (unban cli))
+ (when (null cli.access-hist)
+ (del [client-hash ip]))))
(defun unban (cli)
(unless *dry-run*