# HG changeset patch # User Kim Alvefur # Date 1460984041 -7200 # Node ID 032fcb7b80a1337b243a20834fdd53e6432ffa90 # Parent 3409773ca19a57f00e64ce16b212c3dc1720e826 MUC: Use config passed to rew_roow() diff -r 3409773ca19a -r 032fcb7b80a1 plugins/muc/muc.lib.lua --- 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