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 | 2b24859b36170f9d5d5d329f27fd0346ec9a6ea3 (patch) | |
tree | 822c6279143330cd8e36146b8995143ceac0c2af | |
parent | 9b481d593aaca776cd9361ecc370411634b6e037 (diff) | |
download | prosody-2b24859b36170f9d5d5d329f27fd0346ec9a6ea3.tar.gz prosody-2b24859b36170f9d5d5d329f27fd0346ec9a6ea3.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; |