Changeset

5329:9fffd5fad4b3

mod_admin_adhoc: Fix 'Shut down service' command
author Florian Zeitz <florob@babelmonkeys.de>
date Thu, 07 Feb 2013 22:11:35 +0100
parents 5328:5e15e6700412
children 5330:0a0ca2eb991b 5551:e1e06f1465be
files plugins/mod_admin_adhoc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_adhoc.lua	Thu Feb 07 21:14:01 2013 +0100
+++ b/plugins/mod_admin_adhoc.lua	Thu Feb 07 22:11:35 2013 +0100
@@ -671,7 +671,7 @@
 			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