From 57f4a5c837c5039eee6edd83d9516bca9a82c9d0 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 28 Jul 2009 18:02:11 +0100 Subject: configmanager: Default options appearing before Host "*" to global (fixes potential traceback) --- core/configmanager.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/core/configmanager.lua b/core/configmanager.lua index 7fc6aa13..b7ee605f 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -113,6 +113,7 @@ do 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 :) -- cgit v1.2.3