aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-14 16:14:15 +0200
committerKim Alvefur <zash@zash.se>2018-04-14 16:14:15 +0200
commitffd368426d4ee2d93e41e1687fab15bc596e88f8 (patch)
tree2f0a635bc6d3b88a9e8d7b0522fd5b0b244ea4da /plugins
parent9c52fff28b05453dd596851c6773c87f698a597b (diff)
downloadprosody-ffd368426d4ee2d93e41e1687fab15bc596e88f8.tar.gz
prosody-ffd368426d4ee2d93e41e1687fab15bc596e88f8.zip
MUC: Allow passing config to public create_room API
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/mod_muc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua
index f13a6ab3..3cdc5d87 100644
--- a/plugins/muc/mod_muc.lua
+++ b/plugins/muc/mod_muc.lua
@@ -222,12 +222,12 @@ function get_room_from_jid(room_jid)
return restore_room(room_jid);
end
-function create_room(room_jid)
+function create_room(room_jid, config)
local exists = get_room_from_jid(room_jid);
if exists then
return nil, "room-exists";
end
- local room = muclib.new_room(room_jid);
+ local room = muclib.new_room(room_jid, config);
module:fire_event("muc-room-created", {
room = room;
});