aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-17 22:09:44 +0200
committerKim Alvefur <zash@zash.se>2016-04-17 22:09:44 +0200
commita92b3b499c6319f0510af1772c92ea6637a456af (patch)
treef4da662947e7ae0a5aa9fd715382a142608b96db /plugins/muc/mod_muc.lua
parentbedf8e457aeae1f2f003a74de91adf3b8b214ac5 (diff)
downloadprosody-a92b3b499c6319f0510af1772c92ea6637a456af.tar.gz
prosody-a92b3b499c6319f0510af1772c92ea6637a456af.zip
MUC: Move 'preserialization' step to muc.lib
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index 871b90b4..354ab1d1 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -102,11 +102,7 @@ local function room_save(room, forced)
local is_persistent = persistent.get(room);
persistent_rooms:set(nil, room.jid, is_persistent);
if is_persistent then
- local data = {
- jid = room.jid;
- _data = room._data;
- _affiliations = room._affiliations;
- };
+ local data = room:freeze();
room_configs:set(node, data);
elseif forced then
room_configs:set(node, nil);