diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-07 19:18:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-07 19:18:35 +0100 |
commit | 2d1f009c46a7114d3a7014787ed4ff52229a67bc (patch) | |
tree | 822c6279143330cd8e36146b8995143ceac0c2af | |
parent | d87219daed013b5540f1f82a75d84e01f117f345 (diff) | |
download | prosody-2d1f009c46a7114d3a7014787ed4ff52229a67bc.tar.gz prosody-2d1f009c46a7114d3a7014787ed4ff52229a67bc.zip |
MUC/lock: Fix locking timeout to account for the direction of time
-rw-r--r-- | plugins/muc/lock.lib.lua | 2 |
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; |