# HG changeset patch # User Kim Alvefur # Date 1364008492 -3600 # Node ID e119e378b1d9778b5f17fa3c36cb4ad7178c7fff # Parent 27de7cc941111bd6e2d3068adc435affd3928111 configmanager: Fix so unset variables are searched for in the global section diff -r 27de7cc94111 -r e119e378b1d9 core/configmanager.lua --- a/core/configmanager.lua Sat Mar 23 02:38:30 2013 +0100 +++ b/core/configmanager.lua Sat Mar 23 04:14:52 2013 +0100 @@ -25,7 +25,7 @@ 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;