# HG changeset patch # User Kim Alvefur # Date 1633036971 -7200 # Node ID 94cd363116a3d02962c829384d63022a1da2d244 # Parent 7fe2fbfbdb1cf9ed789c6ba589e1727521d5f012 mod_admin_shell: Allow passing an exit code to server:shutdown() Mirroring the internal API diff -r 7fe2fbfbdb1c -r 94cd363116a3 plugins/mod_admin_shell.lua --- 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