aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-01 20:51:37 +0200
committerKim Alvefur <zash@zash.se>2018-05-01 20:51:37 +0200
commitad64fec9f28c5dbcb5feda3b3c39303e1eb715b9 (patch)
treea2ebcdeeabcdd8fcf922aec5b3f0840f46f8e3d6 /plugins
parent28551ac8580653cc7c8ce14977d438a19fd49421 (diff)
downloadprosody-ad64fec9f28c5dbcb5feda3b3c39303e1eb715b9.tar.gz
prosody-ad64fec9f28c5dbcb5feda3b3c39303e1eb715b9.zip
mod_admin_adhoc: Remove unused initial values [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_adhoc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 9c9ce284..0d84e00b 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -212,8 +212,8 @@ local get_user_password_handler = adhoc_simple(get_user_password_layout, functio
return generate_error_message(err);
end
local user, host, resource = jid.split(fields.accountjid);
- local accountjid = "";
- local password = "";
+ local accountjid;
+ local password;
if host ~= module_host then
return { status = "completed", error = { message = "Tried to get password for a user on " .. host .. " but command was sent to " .. module_host } };
elseif usermanager_user_exists(user, host) then