From 0b0a013d85bf1a2d4b5a6a339b8cf946ba77aa5d Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 5 Jan 2011 06:16:07 +0500 Subject: [PATCH] configmanager: Added rawget(). --- core/configmanager.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/configmanager.lua b/core/configmanager.lua index b703bb8c..4cc3ef46 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -47,6 +47,15 @@ function get(host, section, key) 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 -- 2.30.2