Mercurial > prosody-modules
diff mod_reload_modules/mod_reload_modules.lua @ 4954:e8a487c42b36
merge upstream
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 28 May 2022 16:43:04 +0200 |
parents | cc14bfec209b |
children |
line wrap: on
line diff
--- a/mod_reload_modules/mod_reload_modules.lua Sat May 28 16:42:13 2022 +0200 +++ b/mod_reload_modules/mod_reload_modules.lua Sat May 28 16:43:04 2022 +0200 @@ -8,6 +8,12 @@ return; end local configured_modules = module:get_option_inherited_set("modules_enabled", {}); + local component_module = module:get_option_string("component_module"); + if component_module then + -- Ensure awareness of the component module so that it is not unloaded + configured_modules:add(component_module); + end + -- ignore removed hosts if not prosody.hosts[module.host] then module:log("warn", "Ignoring host %s: host was removed...", module.host);