# HG changeset patch # User Waqas Hussain # Date 1294190167 -18000 # Node ID db98915e8e305f4061f834655300083f739c6e0c # Parent 461812921f8f21af87ee00b22a4793fd2699f30d configmanager: Added rawget(). diff -r 461812921f8f -r db98915e8e30 core/configmanager.lua --- a/core/configmanager.lua Tue Jan 04 21:38:14 2011 +0000 +++ b/core/configmanager.lua Wed Jan 05 06:16:07 2011 +0500 @@ -47,6 +47,15 @@ end return nil; end +function _M.rawget(host, section, key) + local hostconfig = rawget(config, host); + if hostconfig then + local sectionconfig = rawget(hostconfig, section); + if sectionconfig then + return rawget(sectionconfig, key); + end + end +end local function set(config, host, section, key, value) if host and section and key then