Software /
code /
prosody
Diff
plugins/mod_admin_adhoc.lua @ 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 |
parent | 8728:41c959c5c84b |
child | 8770:9c9b198bab84 |
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" };