diff options
-rw-r--r-- | plugins/mod_console.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua index d505a2e2..28e12a62 100644 --- a/plugins/mod_console.lua +++ b/plugins/mod_console.lua @@ -186,6 +186,11 @@ 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); + return true, "Shutdown initiated"; +end + def_env.module = {}; local function get_hosts_set(hosts, module) |