Changeset

7362:032fcb7b80a1

MUC: Use config passed to rew_roow()
author Kim Alvefur <zash@zash.se>
date Mon, 18 Apr 2016 14:54:01 +0200
parents 7361:3409773ca19a
children 7363:14170d161b39
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
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