Software /
code /
prosody
Changeset
9403:4416c1a96400
mod_admin_telnet: Rename variable to avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Sep 2018 14:16:49 +0200 |
parents | 9402:b530b5daae91 |
children | 9404:f40b0cd41a87 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Sep 30 13:51:25 2018 +0200 +++ b/plugins/mod_admin_telnet.lua Sun Sep 30 14:16:49 2018 +0200 @@ -34,8 +34,8 @@ 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