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
commit6f857f8cfa19a82585c471f346f4a1edec4fbfbe (patch)
tree8980f2bbea1478837aab5da204b6dd3f9a31d7ed /plugins
parent5ed59e2c3809d44df0741a48cbda7227e821e41e (diff)
downloadprosody-6f857f8cfa19a82585c471f346f4a1edec4fbfbe.tar.gz
prosody-6f857f8cfa19a82585c471f346f4a1edec4fbfbe.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