diff options
author | Kim Alvefur <zash@zash.se> | 2021-09-30 23:22:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-09-30 23:22:51 +0200 |
commit | 3d4ee088ae21d36f131ae3448f07aec0932436d2 (patch) | |
tree | 6274933361f47603d00ee46c38e97ac2224fb944 /plugins | |
parent | bd8604331f8eddd8fe7bc0d24e6030dfb02b38ee (diff) | |
download | prosody-3d4ee088ae21d36f131ae3448f07aec0932436d2.tar.gz prosody-3d4ee088ae21d36f131ae3448f07aec0932436d2.zip |
mod_admin_shell: Allow passing an exit code to server:shutdown()
Mirroring the internal API
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_shell.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index bab5c4b2..d44f4635 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -330,8 +330,8 @@ function def_env.server:uptime() 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 |