core/hostmanager.lua

changeset 1614
951ed38ad64f
parent 1522
569d58d21612
child 1848
0033359aeb70
--- a/core/hostmanager.lua	Tue Jul 28 15:03:42 2009 +0100
+++ b/core/hostmanager.lua	Tue Jul 28 17:43:46 2009 +0100
@@ -41,6 +41,11 @@
 	                 or (configmanager.get(host, "core", "anonymous_login") 
 	                     and (configmanager.get(host, "core", "disallow_s2s") ~= false))
 	              };
+	for option_name in pairs(host_config.core) do
+		if option_name:match("_ports$") then
+			log("warn", "%s: Option '%s' has no effect for virtual hosts - put it in global Host \"*\" instead", host, option_name);
+		end
+	end
 	log((hosts_loaded_once and "info") or "debug", "Activated host: %s", host);
 	eventmanager.fire_event("host-activated", host, host_config);
 end

mercurial