From 3d4ee088ae21d36f131ae3448f07aec0932436d2 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 30 Sep 2021 23:22:51 +0200 Subject: mod_admin_shell: Allow passing an exit code to server:shutdown() Mirroring the internal API --- plugins/mod_admin_shell.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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 -- cgit v1.2.3