Software /
code /
prosody
Diff
plugins/muc/lock.lib.lua @ 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 |
parent | 8565:301e5b82b4d8 |
child | 8866:2c60ae791bdc |
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;