diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-11 11:27:44 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-11 11:27:44 -0700 |
commit | 3539d92a0260a2095a16bc61ada6a76e48120dac (patch) | |
tree | e5834ae790cc39b9b58bf6bfe7eb6a4d3c4e7a56 | |
parent | ef8a9cfbe5dc8723d9098c8a14b8007095b72f63 (diff) | |
download | txrban-3539d92a0260a2095a16bc61ada6a76e48120dac.tar.gz txrban-3539d92a0260a2095a16bc61ada6a76e48120dac.tar.bz2 txrban-3539d92a0260a2095a16bc61ada6a76e48120dac.zip |
expiry: bugfix: failing to delete unbanned clients.
-rw-r--r-- | txrban.txr | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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* |