From 05af8c8bfabc44445cc3ee7020cc1b6ca4fc58ed Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 27 Apr 2012 22:36:35 +0100 Subject: modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps) --- core/modulemanager.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/modulemanager.lua') 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 --- -- cgit v1.2.3