aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit2d1f009c46a7114d3a7014787ed4ff52229a67bc (patch)
tree822c6279143330cd8e36146b8995143ceac0c2af /plugins
parentd87219daed013b5540f1f82a75d84e01f117f345 (diff)
downloadprosody-2d1f009c46a7114d3a7014787ed4ff52229a67bc.tar.gz
prosody-2d1f009c46a7114d3a7014787ed4ff52229a67bc.zip
MUC/lock: Fix locking timeout to account for the direction of time
Diffstat (limited to 'plugins')
-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;