diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-30 13:37:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-30 13:37:51 +0200 |
commit | 3154f05072859169b3c834321d52acd6e8dce899 (patch) | |
tree | ea870b18d1a12b8a6b563ab3b3e65abb1871445c | |
parent | a5765839cdb5bc75902de43717f24031ad3f7459 (diff) | |
download | prosody-3154f05072859169b3c834321d52acd6e8dce899.tar.gz prosody-3154f05072859169b3c834321d52acd6e8dce899.zip |
mod_admin_adhoc: Remove unused loop variables [luacheck]
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 6 |
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 |