Software / code / prosody
Changeset
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 |
| parents | 4732:29ff25c8bf56 |
| children | 4734:4d43dbd6de17 |
| files | core/modulemanager.lua |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
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 ---