From 2b24859b36170f9d5d5d329f27fd0346ec9a6ea3 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 7 Mar 2018 19:18:35 +0100 Subject: MUC/lock: Fix locking timeout to account for the direction of time --- plugins/muc/lock.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/muc') diff --git a/plugins/muc/lock.lib.lua b/plugins/muc/lock.lib.lua index d7ee4eca..764142db 100644 --- a/plugins/muc/lock.lib.lua +++ b/plugins/muc/lock.lib.lua @@ -23,7 +23,7 @@ end 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; -- cgit v1.2.3