aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-18 14:54:01 +0200
committerKim Alvefur <zash@zash.se>2016-04-18 14:54:01 +0200
commit78659a7ece07fc590e10bcf9a51a9a6e90780ac4 (patch)
treeefd32c11ecf0242e630b3002149dedde1206109c /plugins/muc/muc.lib.lua
parent8f7f8d673ccf1ee7d115526d6bd7a805e0eed1d7 (diff)
downloadprosody-78659a7ece07fc590e10bcf9a51a9a6e90780ac4.tar.gz
prosody-78659a7ece07fc590e10bcf9a51a9a6e90780ac4.zip
MUC: Use config passed to rew_roow()
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 2 insertions, 4 deletions
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