From: Kim Alvefur Date: Mon, 18 Apr 2016 12:54:01 +0000 (+0200) Subject: MUC: Use config passed to rew_roow() X-Git-Url: https://git.enpas.org/?a=commitdiff_plain;h=8280a8d9de85af79c4661b619f6c90b16cf1ea33;p=prosody.git MUC: Use config passed to rew_roow() --- diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 2026bc47..14cbd63c 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1223,14 +1223,12 @@ room_mt.set_whois = whois.set; 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