diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-30 14:16:49 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-30 14:16:49 +0200 |
commit | b1f6632732b0ef51260745b4ed5463337f29960d (patch) | |
tree | aeaa7f3075ffed363c181da23e13ea40964ea697 /plugins/mod_admin_telnet.lua | |
parent | bcb7076e7c05e03bc70672d3267906bca2f276ba (diff) | |
download | prosody-b1f6632732b0ef51260745b4ed5463337f29960d.tar.gz prosody-b1f6632732b0ef51260745b4ed5463337f29960d.zip |
mod_admin_telnet: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua index 0a171059..1a73914e 100644 --- a/plugins/mod_admin_telnet.lua +++ b/plugins/mod_admin_telnet.lua @@ -34,8 +34,8 @@ local commands = module:shared("commands") local def_env = module:shared("env"); local default_env_mt = { __index = def_env }; -local function redirect_output(_G, session) - local env = setmetatable({ print = session.print }, { __index = function (t, k) return rawget(_G, k); end }); +local function redirect_output(target, session) + local env = setmetatable({ print = session.print }, { __index = function (t, k) return rawget(target, k); end }); env.dofile = function(name) local f, err = envloadfile(name, env); if not f then return f, err; end |