Software /
code /
prosody
Comparison
plugins/mod_admin_adhoc.lua @ 9400:9ef746c2a644
mod_admin_adhoc: Remove unused argument [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 30 Sep 2018 13:38:33 +0200 |
parent | 9399:ec60e74fd9bb |
child | 9401:6329c07452b7 |
comparison
equal
deleted
inserted
replaced
9399:ec60e74fd9bb | 9400:9ef746c2a644 |
---|---|
671 local message = st.message({type = "headline"}, fields.announcement):up() | 671 local message = st.message({type = "headline"}, fields.announcement):up() |
672 :tag("subject"):text("Server is shutting down"); | 672 :tag("subject"):text("Server is shutting down"); |
673 send_to_online(message); | 673 send_to_online(message); |
674 end | 674 end |
675 | 675 |
676 timer_add_task(tonumber(fields.delay or "5"), function(time) prosody.shutdown("Shutdown by adhoc command") end); | 676 timer_add_task(tonumber(fields.delay or "5"), function() prosody.shutdown("Shutdown by adhoc command") end); |
677 | 677 |
678 return { status = "completed", info = "Server is about to shut down" }; | 678 return { status = "completed", info = "Server is about to shut down" }; |
679 end); | 679 end); |
680 | 680 |
681 -- Unloading modules | 681 -- Unloading modules |