Don't return undefined from ejabberd_config:get_myhosts()

This commit is contained in:
Paweł Chmielowski 2018-01-29 11:05:59 +01:00
parent 719dfe12f6
commit dc601610b6
1 changed files with 6 additions and 1 deletions

View File

@ -1057,7 +1057,12 @@ get_version() ->
-spec get_myhosts() -> [binary()].
get_myhosts() ->
get_option(hosts).
case get_option(hosts) of
V when is_list(V) ->
V;
_ ->
[]
end.
-spec get_mylang() -> binary().