From 62d876cf007b26c6167c3b9693f247e62a5dabf3 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Thu, 7 Feb 2013 22:11:35 +0100 Subject: mod_admin_adhoc: Fix 'Shut down service' command --- plugins/mod_admin_adhoc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_admin_adhoc.lua') diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index ed65e434..f136eb46 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -671,7 +671,7 @@ function shut_down_service_handler(self, data, state) send_to_online(message); end - timer_add_task(tonumber(fields.delay or "5"), prosody.shutdown); + timer_add_task(tonumber(fields.delay or "5"), function(time) prosody.shutdown("Shutdown by adhoc command") end); return { status = "completed", info = "Server is about to shut down" }; else -- cgit v1.2.3