Software /
code /
prosody
Changeset
8566:8ea66e42a27b
MUC/lock: Fix locking timeout to account for the direction of time
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2018 19:18:35 +0100 |
parents | 8565:301e5b82b4d8 |
children | 8567:93695bb1f0e7 |
files | plugins/muc/lock.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/lock.lib.lua Wed Mar 07 19:17:48 2018 +0100 +++ b/plugins/muc/lock.lib.lua Wed Mar 07 19:18:35 2018 +0100 @@ -23,7 +23,7 @@ local function is_locked(room) local ts = room._data.locked; if ts then - if ts < os.time() then return true; end + if os.time() < ts then return true; end unlock(room); end return false;