changeset 1013:8285c3502100

mod_auto_activate_hosts: Don't activate * when the config is reloaded
author Matthew Wild <mwild1@gmail.com>
date Sat, 18 May 2013 11:46:11 +0100 (2013-05-18)
parents c53a1b8a1cfa
children ed7431fd3b47
files mod_auto_activate_hosts/mod_auto_activate_hosts.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_auto_activate_hosts/mod_auto_activate_hosts.lua	Tue May 14 16:27:05 2013 +0100
+++ b/mod_auto_activate_hosts/mod_auto_activate_hosts.lua	Sat May 18 11:46:11 2013 +0100
@@ -16,7 +16,7 @@
 function handle_reload()
 	local new_config = config.getconfig();
 	local active_hosts = set.new(array.collect(it.keys(prosody.hosts)):filter(host_not_global));
-	local enabled_hosts = set.new(array.collect(it.keys(new_config)):filter(host_is_enabled));
+	local enabled_hosts = set.new(array.collect(it.keys(new_config)):filter(host_is_enabled):filter(host_not_global));
 	local need_to_activate = enabled_hosts - active_hosts;
 	local need_to_deactivate = active_hosts - enabled_hosts;