diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:36:35 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-04-27 22:36:35 +0100 |
commit | 9fa672af8b196566d0099daf5cd12ef0374999dc (patch) | |
tree | ef8eafaadadcdfb9276fc867961efeb7b74e0f37 | |
parent | 59b9d9b0f3334d2e0b2ddc5de58d950a2b9fb6df (diff) | |
download | prosody-9fa672af8b196566d0099daf5cd12ef0374999dc.tar.gz prosody-9fa672af8b196566d0099daf5cd12ef0374999dc.zip |
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
-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 --- |