aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
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
commit9b481d593aaca776cd9361ecc370411634b6e037 (patch)
treeb985a5db8fdc15069c7bb42af734edc763276154 /plugins/muc
parent2fe0a4856a01987fd9e9da5bbe48546530665467 (diff)
downloadprosody-9b481d593aaca776cd9361ecc370411634b6e037.tar.gz
prosody-9b481d593aaca776cd9361ecc370411634b6e037.zip
MUC/lock: Remove redundant fallback value
Diffstat (limited to 'plugins/muc')
-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);