Software /
code /
prosody
Diff
plugins/mod_admin_shell.lua @ 11831:94cd363116a3
mod_admin_shell: Allow passing an exit code to server:shutdown()
Mirroring the internal API
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 30 Sep 2021 23:22:51 +0200 |
parent | 11736:ddb87df3de30 |
child | 11850:bfa85965106e |
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua Thu Sep 30 23:22:07 2021 +0200 +++ b/plugins/mod_admin_shell.lua Thu Sep 30 23:22:51 2021 +0200 @@ -330,8 +330,8 @@ minutes, (minutes ~= 1 and "s") or "", os.date("%c", prosody.start_time)); end -function def_env.server:shutdown(reason) - prosody.shutdown(reason); +function def_env.server:shutdown(reason, code) + prosody.shutdown(reason, code); return true, "Shutdown initiated"; end