# HG changeset patch # User Kim Alvefur # Date 1520446668 -3600 # Node ID 301e5b82b4d80a4bf8919cdfb85ee597a458cab9 # Parent fd41dc4a78e9fce5c05195bbd254aeaeb23a92b6 MUC/lock: Remove redundant fallback value diff -r fd41dc4a78e9 -r 301e5b82b4d8 plugins/muc/lock.lib.lua --- a/plugins/muc/lock.lib.lua Wed Mar 07 12:51:27 2018 +0100 +++ b/plugins/muc/lock.lib.lua Wed Mar 07 19:17:48 2018 +0100 @@ -21,7 +21,7 @@ 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);