aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_admin.erl
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2016-02-08 21:35:26 +0100
committerBadlop <badlop@process-one.net>2016-02-08 21:35:26 +0100
commit1de085ec23337e9ef4e5107d95bdc2cacaaba15b (patch)
treed5a19a0d114dcaa1c6d5c550cc7253a7ab50f713 /src/mod_muc_admin.erl
parentFix example value for rescode return type (diff)
Prepare room JID in create_room command
Diffstat (limited to 'src/mod_muc_admin.erl')
-rw-r--r--src/mod_muc_admin.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mod_muc_admin.erl b/src/mod_muc_admin.erl
index b11127914..7c6e84c45 100644
--- a/src/mod_muc_admin.erl
+++ b/src/mod_muc_admin.erl
@@ -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,