]> granicus.if.org Git - ejabberd/commitdiff
Prepare room JID in create_room command
authorBadlop <badlop@process-one.net>
Mon, 8 Feb 2016 20:35:26 +0000 (21:35 +0100)
committerBadlop <badlop@process-one.net>
Mon, 8 Feb 2016 20:35:26 +0000 (21:35 +0100)
src/mod_muc_admin.erl

index b1112791442265cfae4689d5cd046be8cea356d3..7c6e84c453905c94493cef0d432127abba2a0e53 100644 (file)
@@ -396,7 +396,9 @@ prepare_room_info(Room_info) ->
 %% @spec (Name::binary(), Host::binary(), ServerHost::binary()) ->
 %%       ok | error
 %% @doc Create a room immediately with the default options.
-create_room(Name, Host, ServerHost) ->
+create_room(Name1, Host1, ServerHost) ->
+    Name = jid:nodeprep(Name1),
+    Host = jid:nodeprep(Host1),
 
     %% Get the default room options from the muc configuration
     DefRoomOpts = gen_mod:get_module_opt(ServerHost, mod_muc,