Fix srg_create when calling ejabberd_regexp (fixes issue #12)

This commit is contained in:
Badlop 2014-02-28 18:38:40 +01:00
parent 9180e814bc
commit 977f043a6a
1 changed files with 1 additions and 1 deletions

View File

@ -1316,7 +1316,7 @@ private_set2(Username, Host, Xml) ->
srg_create(Group, Host, Name, Description, Display) -> srg_create(Group, Host, Name, Description, Display) ->
DisplayList = case Display of DisplayList = case Display of
[] -> []; [] -> [];
_ -> ejabberd_regexp:split(Display, "\\\\n") _ -> ejabberd_regexp:split(list_to_binary(Display), <<"\\\\n">>)
end, end,
Opts = [{name, Name}, Opts = [{name, Name},
{displayed_groups, DisplayList}, {displayed_groups, DisplayList},