aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-28 23:14:09 +0200
committerKim Alvefur <zash@zash.se>2016-04-28 23:14:09 +0200
commiteb916e9760459749556304aeb59a49f9ea4c4bba (patch)
tree8980f2bbea1478837aab5da204b6dd3f9a31d7ed /plugins
parent8cfdf1b4a2eafd2ffa83178053c4f7e4b42e1626 (diff)
downloadprosody-eb916e9760459749556304aeb59a49f9ea4c4bba.tar.gz
prosody-eb916e9760459749556304aeb59a49f9ea4c4bba.zip
MUC: Move the locked flag into persisted data (so not to lose it on eviction)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/lock.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/lock.lib.lua b/plugins/muc/lock.lib.lua
index 82f0dc3f..e316c57c 100644
--- a/plugins/muc/lock.lib.lua
+++ b/plugins/muc/lock.lib.lua
@@ -14,14 +14,14 @@ local lock_room_timeout = module:get_option_number("muc_room_lock_timeout", 300)
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