# HG changeset patch # User Kim Alvefur # Date 1461878049 -7200 # Node ID e465b584547bf0abbe1089f39e883cb7987b6bdf # Parent 92755ca737c35e4db4600417c139c12a8d6b30a0 MUC: Move the locked flag into persisted data (so not to lose it on eviction) diff -r 92755ca737c3 -r e465b584547b plugins/muc/lock.lib.lua --- 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