aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-30 13:37:51 +0200
committerKim Alvefur <zash@zash.se>2018-09-30 13:37:51 +0200
commit7c3974d11331bb82a1186058d5c8cd3f05be66b6 (patch)
treeea870b18d1a12b8a6b563ab3b3e65abb1871445c
parentdc5437c14f580231e85c522f033a07a81dd7273f (diff)
downloadprosody-7c3974d11331bb82a1186058d5c8cd3f05be66b6.tar.gz
prosody-7c3974d11331bb82a1186058d5c8cd3f05be66b6.zip
mod_admin_adhoc: Remove unused loop variables [luacheck]
-rw-r--r--plugins/mod_admin_adhoc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index e9764296..ae4330c9 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -295,7 +295,7 @@ local get_user_stats_handler = adhoc_simple(get_user_stats_layout, function(fiel
return generate_error_message(err);
end
- local user, host, resource = jid.split(fields.accountjid);
+ local user, host = jid.split(fields.accountjid);
if host ~= module_host then
return { status = "completed", error = { message = "Tried to get stats for a user on " .. host .. " but command was sent to " .. module_host } };
elseif not usermanager_user_exists(user, host) then
@@ -594,7 +594,7 @@ end, function(fields, err)
end
local ok_list, err_list = {}, {};
- for host_name, host in pairs(hosts) do
+ for host_name in pairs(hosts) do
if modulemanager.is_loaded(host_name, fields.module) then
local ok, err = modulemanager.reload(host_name, fields.module);
if ok then
@@ -739,7 +739,7 @@ end, function(fields, err)
end
local ok_list, err_list = {}, {};
- for host_name, host in pairs(hosts) do
+ for host_name in pairs(hosts) do
if modulemanager.is_loaded(host_name, fields.module) then
local ok, err = modulemanager.unload(host_name, fields.module);
if ok then