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
commit05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed (patch)
treeef8eafaadadcdfb9276fc867961efeb7b74e0f37 /core/modulemanager.lua
parentf427f1c7d5f397979d4fedf49e1ccec67efd8ff6 (diff)
downloadprosody-05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed.tar.gz
prosody-05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed.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 ---