diff options
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r-- | core/modulemanager.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/modulemanager.lua b/core/modulemanager.lua index 5a97e5bf..3829da57 100644 --- a/core/modulemanager.lua +++ b/core/modulemanager.lua @@ -82,6 +82,9 @@ function load_modules_for_host(host) end end prosody.events.add_handler("host-activated", load_modules_for_host); +prosody.events.add_handler("host-deactivated", function (host) + modulemap[host] = nil; +end); --- Private helpers --- |