Diff

plugins/mod_admin_adhoc.lua @ 8770:9c9b198bab84

mod_admin_adhoc: Remove unused initial values [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 01 May 2018 20:51:37 +0200
parent 8769:e809074cdc09
child 8771:82bdeb8009ce
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua	Tue May 01 20:47:52 2018 +0200
+++ b/plugins/mod_admin_adhoc.lua	Tue May 01 20:51:37 2018 +0200
@@ -212,8 +212,8 @@
 		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