aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-08-25 22:42:41 +0200
committerKim Alvefur <zash@zash.se>2022-08-25 22:42:41 +0200
commit95bba786f1fb0e15b98fa2b475d0ad585ad359a3 (patch)
treee94a98087a655efed9a3efe397af4b64072b9e17
parentb2921275006698b2dee48de667db068c861fa620 (diff)
downloadprosody-95bba786f1fb0e15b98fa2b475d0ad585ad359a3.tar.gz
prosody-95bba786f1fb0e15b98fa2b475d0ad585ad359a3.zip
mod_admin_shell: Rename variable to avoid confusion with global function
For luacheck, but it doesn't actually complain about this right now
-rw-r--r--plugins/mod_admin_shell.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua
index 042d6cff..14fab8ad 100644
--- a/plugins/mod_admin_shell.lua
+++ b/plugins/mod_admin_shell.lua
@@ -1265,18 +1265,18 @@ end
function def_env.host:list()
local print = self.session.print;
local i = 0;
- local type;
+ local host_type;
for host, host_session in iterators.sorted_pairs(prosody.hosts, _sort_hosts) do
i = i + 1;
- type = host_session.type;
- if type == "local" then
+ host_type = host_session.type;
+ if host_type == "local" then
print(host);
else
- type = module:context(host):get_option_string("component_module", type);
- if type ~= "component" then
- type = type .. " component";
+ host_type = module:context(host):get_option_string("component_module", host_type);
+ if host_type ~= "component" then
+ host_type = host_type .. " component";
end
- print(("%s (%s)"):format(host, type));
+ print(("%s (%s)"):format(host, host_type));
end
end
return true, i.." hosts";