aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_announce.lua
diff options
context:
space:
mode:
authorFlorian Zeitz <florob@babelmonkeys.de>2012-08-02 21:42:00 +0200
committerFlorian Zeitz <florob@babelmonkeys.de>2012-08-02 21:42:00 +0200
commitddb2f794f7ea3b05a88f8cea6a2d7d17b12d1205 (patch)
tree9ac74878a5972405905f5df1997902e33c38003c /plugins/mod_announce.lua
parenta3815829fcb92288d1ba9c377ef5a886ba88f547 (diff)
downloadprosody-ddb2f794f7ea3b05a88f8cea6a2d7d17b12d1205.tar.gz
prosody-ddb2f794f7ea3b05a88f8cea6a2d7d17b12d1205.zip
mod_admin_adhoc, mod_announce: Explicitly specify possible actions for ad-hoc commands
Diffstat (limited to 'plugins/mod_announce.lua')
-rw-r--r--plugins/mod_announce.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua
index 0cfd284c..0872bd21 100644
--- a/plugins/mod_announce.lua
+++ b/plugins/mod_announce.lua
@@ -88,7 +88,7 @@ function announce_handler(self, data, state)
module:log("info", "Announcement sent to %d online users", count);
return { status = "completed", info = ("Announcement sent to %d online users"):format(count) };
else
- return { status = "executing", form = announce_layout }, "executing";
+ return { status = "executing", actions = {"next", "complete", default = "complete"}, form = announce_layout }, "executing";
end
return true;