From aa0eb8fdc87589433a1cd5d03f136fb6f32a7426 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 23 Mar 2013 04:14:52 +0100 Subject: configmanager: Fix so unset variables are searched for in the global section --- core/configmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/configmanager.lua b/core/configmanager.lua index a0a1f817..e31dbd72 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -25,7 +25,7 @@ local config_mt = { __index = function (t, k) return rawget(t, "*"); end}; local config = setmetatable({ ["*"] = { } }, config_mt); -- When host not found, use global -local host_mt = { }; +local host_mt = { __index = function(_, k) return config["*"][k] end } function getconfig() return config; -- cgit v1.2.3