# HG changeset patch # User Kim Alvefur # Date 1523715255 -7200 # Node ID be3230b42f123e6c890aa42298a501b5f1dbeffb # Parent d6eb910a204d988f7017939c651c408f9b29b240 MUC: Allow passing config to public create_room API diff -r d6eb910a204d -r be3230b42f12 plugins/muc/mod_muc.lua --- 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; });