plugins/mod_console.lua

changeset 1559
831649bb1922
parent 1558
e15917530285
child 1582
80d3d95aa83c
--- a/plugins/mod_console.lua	Sat Jul 18 15:34:36 2009 +0100
+++ b/plugins/mod_console.lua	Sat Jul 18 18:37:06 2009 +0100
@@ -186,6 +186,11 @@
 		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)

mercurial