aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-07 19:17:48 +0100
committerKim Alvefur <zash@zash.se>2018-03-07 19:17:48 +0100
commitd87219daed013b5540f1f82a75d84e01f117f345 (patch)
treeb985a5db8fdc15069c7bb42af734edc763276154
parentb483b3e440ed665a83b6b6ac8b89e00ec2980507 (diff)
downloadprosody-d87219daed013b5540f1f82a75d84e01f117f345.tar.gz
prosody-d87219daed013b5540f1f82a75d84e01f117f345.zip
MUC/lock: Remove redundant fallback value
-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 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);