Software /
code /
prosody
Changeset
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 |
parents | 7406:92755ca737c3 |
children | 7408:cf53081ce767 |
files | plugins/muc/lock.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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