# HG changeset patch # User Kim Alvefur # Date 1653137298 -7200 # Node ID cc14bfec209b1311b27fc46fee1ad7ad0d03e643 # Parent fa415cd9eecade6bdffdbdcefd6e96cda9720b64 mod_reload_modules: Be aware of component module (thanks Menel) Without this, the component module is seen as a module that is loaded but not configured, and is thus unloaded diff -r fa415cd9eeca -r cc14bfec209b mod_reload_modules/mod_reload_modules.lua --- a/mod_reload_modules/mod_reload_modules.lua Fri May 20 08:41:45 2022 -0400 +++ b/mod_reload_modules/mod_reload_modules.lua Sat May 21 14:48:18 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);