Fix srg_create when calling ejabberd_regexp (fixes issue #12)
This commit is contained in:
parent
9180e814bc
commit
977f043a6a
|
@ -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},
|
||||||
|
|
Loading…
Reference in New Issue