aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/mod_muc.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-18 19:26:26 +0200
committerKim Alvefur <zash@zash.se>2016-04-18 19:26:26 +0200
commitad74a6b7198de6964abceeb6dfd94edcd7c4d609 (patch)
tree5ed9a3084571bc888b5116b6461dd92e36b1b35a /plugins/muc/mod_muc.lua
parent8a98b8c30eea6ccd72330b1985a94a6d382fac43 (diff)
downloadprosody-ad74a6b7198de6964abceeb6dfd94edcd7c4d609.tar.gz
prosody-ad74a6b7198de6964abceeb6dfd94edcd7c4d609.zip
MUC: Move room deserialization to muc.lib
Diffstat (limited to 'plugins/muc/mod_muc.lua')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index c8723c16..4410ba16 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -130,9 +130,7 @@ local function restore_room(jid)
local node = jid_split(jid);
local data = room_configs:get(node);
if data then
- local room = muclib.new_room(jid);
- room._data = data._data;
- room._affiliations = data._affiliations;
+ local room = muclib.restore_room(data);
track_room(room);
return room;
end