Software /
code /
prosody
Diff
core/configmanager.lua @ 5381:30484214d49b
Merge 0.9->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 23 Mar 2013 04:17:39 +0100 |
parent | 5380:e119e378b1d9 |
child | 5413:0bf5e90be086 |
line wrap: on
line diff
--- a/core/configmanager.lua Fri Mar 22 15:16:43 2013 +0000 +++ b/core/configmanager.lua Sat Mar 23 04:17:39 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;