# HG changeset patch # User Matthew Wild # Date 1335562595 -3600 # Node ID 791388f90156dd8af18a1a248bf6c211ae7c92e4 # Parent 29ff25c8bf56a17d386e7b3f7428573196d6293c modulemanager: Clear modulemap when a host is deactivated (thanks xnyhps) diff -r 29ff25c8bf56 -r 791388f90156 core/modulemanager.lua --- 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 ---