Software /
code /
prosody
Changeset
8565:301e5b82b4d8
MUC/lock: Remove redundant fallback value
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 07 Mar 2018 19:17:48 +0100 |
parents | 8564:fd41dc4a78e9 |
children | 8566:8ea66e42a27b |
files | plugins/muc/lock.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);