diff options
author | Matthew Wild <mwild1@gmail.com> | 2015-05-18 19:03:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2015-05-18 19:03:07 +0100 |
commit | 7e601a648cf9beab84ddc35dc643743efdefc595 (patch) | |
tree | 082159216d3d0acc06366f3a9e56a1db115d3b5d | |
parent | af7c48e1ec41e75665efdfaa458cca30c3a638cd (diff) | |
download | prosody-7e601a648cf9beab84ddc35dc643743efdefc595.tar.gz prosody-7e601a648cf9beab84ddc35dc643743efdefc595.zip |
configmanager: Rename variable to avoid name conflict [luacheck]
-rw-r--r-- | core/configmanager.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua index 48f039ea..5891c59a 100644 --- a/core/configmanager.lua +++ b/core/configmanager.lua @@ -54,11 +54,11 @@ function _M.rawget(host, key, _oldkey) end end -local function set(config, host, key, value) +local function set(config_table, host, key, value) if host and key then - local hostconfig = rawget(config, host); + local hostconfig = rawget(config_table, host); if not hostconfig then - hostconfig = rawset(config, host, setmetatable({}, host_mt))[host]; + hostconfig = rawset(config_table, host, setmetatable({}, host_mt))[host]; end hostconfig[key] = value; return true; |