From ad74a6b7198de6964abceeb6dfd94edcd7c4d609 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 18 Apr 2016 19:26:26 +0200 Subject: MUC: Move room deserialization to muc.lib --- plugins/muc/mod_muc.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/muc/mod_muc.lua') 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 -- cgit v1.2.3