mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +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()].
|
||||
|
||||
get_myhosts() ->
|
||||
get_option(hosts).
|
||||
case get_option(hosts) of
|
||||
V when is_list(V) ->
|
||||
V;
|
||||
_ ->
|
||||
[]
|
||||
end.
|
||||
|
||||
-spec get_mylang() -> binary().
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user