mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix srg_create when calling ejabberd_regexp (fixes issue #12)
This commit is contained in:
parent
e6a9c5ccee
commit
d66f40d94f
@ -1316,7 +1316,7 @@ private_set2(Username, Host, Xml) ->
|
||||
srg_create(Group, Host, Name, Description, Display) ->
|
||||
DisplayList = case Display of
|
||||
[] -> [];
|
||||
_ -> ejabberd_regexp:split(Display, "\\\\n")
|
||||
_ -> ejabberd_regexp:split(list_to_binary(Display), <<"\\\\n">>)
|
||||
end,
|
||||
Opts = [{name, Name},
|
||||
{displayed_groups, DisplayList},
|
||||
|
Loading…
Reference in New Issue
Block a user