mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +01:00
Allow use with binary() Host from exmpp (thanks to Karim Gemayel)
This commit is contained in:
parent
819dbdbf59
commit
f7dc4df784
@ -246,6 +246,8 @@ get_hosts(Opts, Prefix) ->
|
|||||||
Hosts
|
Hosts
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
get_module_proc(Host, Base) when is_binary(Host) ->
|
||||||
|
get_module_proc(binary_to_list(Host), Base);
|
||||||
get_module_proc(global, Base) ->
|
get_module_proc(global, Base) ->
|
||||||
list_to_atom(atom_to_list(Base) ++ "__global");
|
list_to_atom(atom_to_list(Base) ++ "__global");
|
||||||
get_module_proc(Host, {frontend, Base}) ->
|
get_module_proc(Host, {frontend, Base}) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user