Software /
code /
prosody
Diff
plugins/muc/lock.lib.lua @ 7407:e465b584547b
MUC: Move the locked flag into persisted data (so not to lose it on eviction)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 28 Apr 2016 23:14:09 +0200 |
parent | 6329:6b3eb1611587 |
child | 7408:cf53081ce767 |
line wrap: on
line diff
--- a/plugins/muc/lock.lib.lua Thu Apr 28 22:03:00 2016 +0200 +++ b/plugins/muc/lock.lib.lua Thu Apr 28 23:14:09 2016 +0200 @@ -14,14 +14,14 @@ local function lock(room) module:fire_event("muc-room-locked", {room = room;}); - room.locked = true; + room._data.locked = true; end local function unlock(room) module:fire_event("muc-room-unlocked", {room = room;}); - room.locked = nil; + room._data.locked = nil; end local function is_locked(room) - return not not room.locked; + return not not room._data.locked; end if lock_rooms then