Software /
code /
prosody
Diff
plugins/muc/lock.lib.lua @ 8565:301e5b82b4d8
MUC/lock: Remove redundant fallback value
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2018 19:17:48 +0100 |
parent | 7999:980606856882 |
child | 8566:8ea66e42a27b |
line wrap: on
line diff
--- 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);