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
commitf5a5751222738d5980f6ba210a82d1ab267f9b20 (patch)
tree2f0a635bc6d3b88a9e8d7b0522fd5b0b244ea4da /plugins
parent98e51bd5cbaade635d4cac6a6832c167dc8c2e8c (diff)
downloadprosody-f5a5751222738d5980f6ba210a82d1ab267f9b20.tar.gz
prosody-f5a5751222738d5980f6ba210a82d1ab267f9b20.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;
});