Changeset

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
parents 8874:d6eb910a204d
children 8876:9e72e63819dc
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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;
 	});