# HG changeset patch # User Florian Zeitz # Date 1360271495 -3600 # Node ID 9fffd5fad4b3974e0a9d0d77f2986af735d4010a # Parent 5e15e67004122e5e19155bb0223c2ab58de7525e mod_admin_adhoc: Fix 'Shut down service' command diff -r 5e15e6700412 -r 9fffd5fad4b3 plugins/mod_admin_adhoc.lua --- 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