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 | 05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed (patch) | |
tree | ef8eafaadadcdfb9276fc867961efeb7b74e0f37 | |
parent | f427f1c7d5f397979d4fedf49e1ccec67efd8ff6 (diff) | |
download | prosody-05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed.tar.gz prosody-05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed.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 --- |