diff options
author | Kim Alvefur <zash@zash.se> | 2018-03-07 19:17:48 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-03-07 19:17:48 +0100 |
commit | d87219daed013b5540f1f82a75d84e01f117f345 (patch) | |
tree | b985a5db8fdc15069c7bb42af734edc763276154 | |
parent | b483b3e440ed665a83b6b6ac8b89e00ec2980507 (diff) | |
download | prosody-d87219daed013b5540f1f82a75d84e01f117f345.tar.gz prosody-d87219daed013b5540f1f82a75d84e01f117f345.zip |
MUC/lock: Remove redundant fallback value
-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 928805ec..d7ee4eca 100644 --- a/plugins/muc/lock.lib.lua +++ b/plugins/muc/lock.lib.lua @@ -21,7 +21,7 @@ local function unlock(room) room._data.locked = nil; end local function is_locked(room) - local ts = room._data.locked or false; + local ts = room._data.locked; if ts then if ts < os.time() then return true; end unlock(room); |