# HG changeset patch # User Matthew Wild # Date 1431972187 -3600 # Node ID 29d5875ae38d6fee9095fd75037eec9f07a64656 # Parent 76683a3f3d75dc04173f21cbf1bb38e817d9be1a configmanager: Rename variable to avoid name conflict [luacheck] diff -r 76683a3f3d75 -r 29d5875ae38d core/configmanager.lua --- a/core/configmanager.lua Mon May 18 22:04:12 2015 +0200 +++ b/core/configmanager.lua Mon May 18 19:03:07 2015 +0100 @@ -54,11 +54,11 @@ 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;