mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Use correct default when getting list of modules from config
This commit is contained in:
parent
69de43d5ee
commit
fc3c605945
@ -133,7 +133,7 @@ start_modules() ->
|
||||
end, ?MYHOSTS).
|
||||
|
||||
get_modules_options(Host) ->
|
||||
sort_modules(Host, ejabberd_config:get_option({modules, Host})).
|
||||
sort_modules(Host, ejabberd_config:get_option({modules, Host}, [])).
|
||||
|
||||
sort_modules(Host, ModOpts) ->
|
||||
G = digraph:new([acyclic]),
|
||||
@ -232,7 +232,7 @@ start_module(Host, Module, Opts0, NeedValidation) ->
|
||||
|
||||
-spec reload_modules(binary()) -> ok.
|
||||
reload_modules(Host) ->
|
||||
NewMods = ejabberd_config:get_option({modules, Host}),
|
||||
NewMods = ejabberd_config:get_option({modules, Host}, []),
|
||||
OldMods = ets:select(
|
||||
ejabberd_modules,
|
||||
ets:fun2ms(
|
||||
|
Loading…
Reference in New Issue
Block a user