# HG changeset patch # User Kim Alvefur # Date 1520446715 -3600 # Node ID 8ea66e42a27b971c179b4b72d2103a97687bed30 # Parent 301e5b82b4d80a4bf8919cdfb85ee597a458cab9 MUC/lock: Fix locking timeout to account for the direction of time diff -r 301e5b82b4d8 -r 8ea66e42a27b plugins/muc/lock.lib.lua --- 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;