Software /
code /
prosody-modules
Changeset
2346:dd1f0173f538
mod_watchuntrusted: Fix backwards time comparison
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 06 Nov 2016 21:02:21 +0100 |
parents | 2345:2df32ac11b31 |
children | 2347:a47520a2c59d |
files | mod_watchuntrusted/mod_watchuntrusted.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_watchuntrusted/mod_watchuntrusted.lua Fri Nov 04 22:35:09 2016 +0100 +++ b/mod_watchuntrusted/mod_watchuntrusted.lua Sun Nov 06 21:02:21 2016 +0100 @@ -64,7 +64,7 @@ module:add_timer(14400, function (now) for host, time in pairs(notified_about_already) do - if time + 86400 > now then + if time + 86400 < now then notified_about_already[host] = nil; end end