projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bdfc9d
)
MUC: Use config passed to rew_roow()
author
Kim Alvefur
<zash@zash.se>
Mon, 18 Apr 2016 12:54:01 +0000
(14:54 +0200)
committer
Kim Alvefur
<zash@zash.se>
Mon, 18 Apr 2016 12:54:01 +0000
(14:54 +0200)
plugins/muc/muc.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/muc.lib.lua
b/plugins/muc/muc.lib.lua
index 2026bc4717c668adc0def9bf16712c6767e8eefd..14cbd63c63e84f593f27fcac8b15c7923f7186c1 100644
(file)
--- 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