Changeset

1615:0e3eacf135f2

configmanager: Default options appearing before Host "*" to global (fixes potential traceback)
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Jul 2009 18:02:11 +0100
parents 1614:951ed38ad64f
children 1616:80ea744f2643
files core/configmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/configmanager.lua	Tue Jul 28 17:43:46 2009 +0100
+++ b/core/configmanager.lua	Tue Jul 28 18:02:11 2009 +0100
@@ -113,6 +113,7 @@
 											set(env.__currenthost or "*", "core", k, v);
 										end});
 		
+		rawset(env, "__currenthost", "*") -- Default is global
 		function env.Host(name)
 			rawset(env, "__currenthost", name);
 			-- Needs at least one setting to logically exist :)