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
1 changed files with 2 additions and 0 deletions

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}) ->