Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 8875:be3230b42f12
MUC: Allow passing config to public create_room API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 14 Apr 2018 16:14:15 +0200 |
parent | 8870:dd0291aa3393 |
child | 8877:9182398c64b9 |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Wed Jun 06 00:18:59 2018 +0200 +++ b/plugins/muc/mod_muc.lua Sat Apr 14 16:14:15 2018 +0200 @@ -222,12 +222,12 @@ 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; });