diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-01 20:47:52 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-01 20:47:52 +0200 |
commit | 7d503c832b7dbdf088814f452e790bef86034831 (patch) | |
tree | 17d63fef8de466c9e95fdfd6805d6b7346eee5d8 /plugins/mod_admin_adhoc.lua | |
parent | 8e2d50474a40e77dfbc43abf429495dddc2fa978 (diff) | |
download | prosody-7d503c832b7dbdf088814f452e790bef86034831.tar.gz prosody-7d503c832b7dbdf088814f452e790bef86034831.zip |
mod_admin_adhoc: Split a long line (improves readability) [luacheck]
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index 39cc0165..9c9ce284 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -95,7 +95,12 @@ local change_user_password_command_handler = adhoc_simple(change_user_password_l 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" }; |