mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 02:29:34 +02:00
Parse also ServerHost in create_room* commands (#3326)
This commit is contained in:
parent
f652f8c8d6
commit
ff92dab49e
1 changed files with 2 additions and 1 deletions
|
@ -627,9 +627,10 @@ justcreated_to_binary(J) when is_atom(J) ->
|
|||
create_room(Name1, Host1, ServerHost) ->
|
||||
create_room_with_opts(Name1, Host1, ServerHost, []).
|
||||
|
||||
create_room_with_opts(Name1, Host1, ServerHost, CustomRoomOpts) ->
|
||||
create_room_with_opts(Name1, Host1, ServerHost1, CustomRoomOpts) ->
|
||||
true = (error /= (Name = jid:nodeprep(Name1))),
|
||||
true = (error /= (Host = jid:nodeprep(Host1))),
|
||||
true = (error /= (ServerHost = jid:nodeprep(ServerHost1))),
|
||||
|
||||
%% Get the default room options from the muc configuration
|
||||
DefRoomOpts = mod_muc_opt:default_room_options(ServerHost),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue