Diff

plugins/muc/mod_muc.lua @ 7367:2aef5e8b69e9

MUC: Move room deserialization to muc.lib
author Kim Alvefur <zash@zash.se>
date Mon, 18 Apr 2016 19:26:26 +0200
parent 7361:3409773ca19a
child 7370:0ebc7ff1fff5
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Apr 18 19:20:51 2016 +0200
+++ b/plugins/muc/mod_muc.lua	Mon Apr 18 19:26:26 2016 +0200
@@ -130,9 +130,7 @@
 	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