diff options
Diffstat (limited to 'txrban.txr')
-rw-r--r-- | txrban.txr | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -82,8 +82,10 @@ (defun do-expiry (now-time) (dohash (ip cli client-hash) - (if (and cli.banned (<= (to cli.banned) now-time)) - (unban cli)))) + (when (and cli.banned (<= (to cli.banned) now-time)) + (unban cli) + (when (null cli.access-hist) + (del [client-hash ip]))))) (defun unban (cli) (unless *dry-run* |