mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-18 22:15:20 +02:00
gen_mod: Support global module processes
This commit is contained in:
parent
094f586811
commit
54363f8476
|
@ -833,7 +833,9 @@ get_hosts(Opts, Prefix) ->
|
||||||
Hosts
|
Hosts
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec get_module_proc(binary(), atom()) -> atom().
|
-spec get_module_proc(binary() | global, atom()) -> atom().
|
||||||
|
get_module_proc(global, Base) ->
|
||||||
|
get_module_proc(<<"global">>, Base);
|
||||||
get_module_proc(Host, Base) ->
|
get_module_proc(Host, Base) ->
|
||||||
binary_to_atom(
|
binary_to_atom(
|
||||||
<<(erlang:atom_to_binary(Base, latin1))/binary, "_", Host/binary>>,
|
<<(erlang:atom_to_binary(Base, latin1))/binary, "_", Host/binary>>,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user