Diff

plugins/muc/muc.lib.lua @ 7362:032fcb7b80a1

MUC: Use config passed to rew_roow()
author Kim Alvefur <zash@zash.se>
date Mon, 18 Apr 2016 14:54:01 +0200
parent 7360:7a37fade5380
child 7363:14170d161b39
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sun Apr 17 22:28:48 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Mon Apr 18 14:54:01 2016 +0200
@@ -1223,14 +1223,12 @@
 
 local _M = {}; -- module "muc"
 
-function _M.new_room(jid, config) -- luacheck: ignore 212
-	-- TODO use config?
+function _M.new_room(jid, config)
 	return setmetatable({
 		jid = jid;
 		_jid_nick = {};
 		_occupants = {};
-		_data = {
-		};
+		_data = config or {};
 		_affiliations = {};
 	}, room_mt);
 end