projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0f7017
)
configmanager: Rename variable to avoid name conflict [luacheck]
author
Matthew Wild
<mwild1@gmail.com>
Mon, 18 May 2015 18:03:07 +0000
(19:03 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 18 May 2015 18:03:07 +0000
(19:03 +0100)
core/configmanager.lua
patch
|
blob
|
history
diff --git
a/core/configmanager.lua
b/core/configmanager.lua
index 48f039eac8c3eea55ebe45c64efe23b10cdb93e7..5891c59a0653f4cfac3503c2217174bd982dafe4 100644
(file)
--- 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;