Changeset

8769:e809074cdc09

mod_admin_adhoc: Split a long line (improves readability) [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 01 May 2018 20:47:52 +0200
parents 8768:bd88ca43d77a
children 8770:9c9b198bab84
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua	Tue May 01 20:45:22 2018 +0200
+++ b/plugins/mod_admin_adhoc.lua	Tue May 01 20:47:52 2018 +0200
@@ -95,7 +95,12 @@
 	end
 	local username, host, resource = jid.split(fields.accountjid);
 	if module_host ~= host then
-		return { status = "completed", error = { message = "Trying to change the password of a user on " .. host .. " but command was sent to " .. module_host}};
+		return {
+			status = "completed",
+			error = {
+				message = "Trying to change the password of a user on " .. host .. " but command was sent to " .. module_host
+			}
+		};
 	end
 	if usermanager_user_exists(username, host) and usermanager_set_password(username, fields.password, host, nil) then
 		return { status = "completed", info = "Password successfully changed" };