25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Allow use with binary() Host from exmpp (thanks to Karim Gemayel)

This commit is contained in:
Christophe Romain 2010-09-28 10:06:16 +02:00
parent 819dbdbf59
commit f7dc4df784

View File

@ -246,6 +246,8 @@ get_hosts(Opts, Prefix) ->
Hosts
end.
get_module_proc(Host, Base) when is_binary(Host) ->
get_module_proc(binary_to_list(Host), Base);
get_module_proc(global, Base) ->
list_to_atom(atom_to_list(Base) ++ "__global");
get_module_proc(Host, {frontend, Base}) ->