mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Don't return undefined from ejabberd_config:get_myhosts()
This commit is contained in:
parent
719dfe12f6
commit
dc601610b6
@ -1057,7 +1057,12 @@ get_version() ->
|
|||||||
-spec get_myhosts() -> [binary()].
|
-spec get_myhosts() -> [binary()].
|
||||||
|
|
||||||
get_myhosts() ->
|
get_myhosts() ->
|
||||||
get_option(hosts).
|
case get_option(hosts) of
|
||||||
|
V when is_list(V) ->
|
||||||
|
V;
|
||||||
|
_ ->
|
||||||
|
[]
|
||||||
|
end.
|
||||||
|
|
||||||
-spec get_mylang() -> binary().
|
-spec get_mylang() -> binary().
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user