aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-18 19:03:07 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-18 19:03:07 +0100
commit7e601a648cf9beab84ddc35dc643743efdefc595 (patch)
tree082159216d3d0acc06366f3a9e56a1db115d3b5d
parentaf7c48e1ec41e75665efdfaa458cca30c3a638cd (diff)
downloadprosody-7e601a648cf9beab84ddc35dc643743efdefc595.tar.gz
prosody-7e601a648cf9beab84ddc35dc643743efdefc595.zip
configmanager: Rename variable to avoid name conflict [luacheck]
-rw-r--r--core/configmanager.lua6
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;