Software /
code /
prosody
Diff
core/modulemanager.lua @ 4733:791388f90156
modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 27 Apr 2012 22:36:35 +0100 |
parent | 4728:7c81b04a4fed |
child | 4745:d5b1a7531693 |
line wrap: on
line diff
--- a/core/modulemanager.lua Fri Apr 27 22:33:38 2012 +0100 +++ b/core/modulemanager.lua Fri Apr 27 22:36:35 2012 +0100 @@ -82,6 +82,9 @@ 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 ---