diff options
author | Kim Alvefur <zash@zash.se> | 2013-03-23 04:14:52 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-03-23 04:14:52 +0100 |
commit | aa0eb8fdc87589433a1cd5d03f136fb6f32a7426 (patch) | |
tree | fc52870bbca26966e739b1654dd7ff728fbbd9e0 | |
parent | 7ebd37f7371744d1b4d7b38d2c2dbc9888f5ac83 (diff) | |
download | prosody-aa0eb8fdc87589433a1cd5d03f136fb6f32a7426.tar.gz prosody-aa0eb8fdc87589433a1cd5d03f136fb6f32a7426.zip |
configmanager: Fix so unset variables are searched for in the global section
-rw-r--r-- | core/configmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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; |