aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/lock.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-07 19:18:35 +0100
committerKim Alvefur <zash@zash.se>2018-03-07 19:18:35 +0100
commit2b24859b36170f9d5d5d329f27fd0346ec9a6ea3 (patch)
tree822c6279143330cd8e36146b8995143ceac0c2af /plugins/muc/lock.lib.lua
parent9b481d593aaca776cd9361ecc370411634b6e037 (diff)
downloadprosody-2b24859b36170f9d5d5d329f27fd0346ec9a6ea3.tar.gz
prosody-2b24859b36170f9d5d5d329f27fd0346ec9a6ea3.zip
MUC/lock: Fix locking timeout to account for the direction of time
Diffstat (limited to 'plugins/muc/lock.lib.lua')
-rw-r--r--plugins/muc/lock.lib.lua2
1 files changed, 1 insertions, 1 deletions
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;