aboutsummaryrefslogtreecommitdiffstats
path: root/core/modulemanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-04-27 22:36:35 +0100
committerMatthew Wild <mwild1@gmail.com>2012-04-27 22:36:35 +0100
commit9fa672af8b196566d0099daf5cd12ef0374999dc (patch)
treeef8eafaadadcdfb9276fc867961efeb7b74e0f37 /core/modulemanager.lua
parent59b9d9b0f3334d2e0b2ddc5de58d950a2b9fb6df (diff)
downloadprosody-9fa672af8b196566d0099daf5cd12ef0374999dc.tar.gz
prosody-9fa672af8b196566d0099daf5cd12ef0374999dc.zip
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
Diffstat (limited to 'core/modulemanager.lua')
-rw-r--r--core/modulemanager.lua3
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 ---