Diff

plugins/mod_announce.lua @ 5076:88fb94df9b18

mod_admin_adhoc, mod_announce: Explicitly specify possible actions for ad-hoc commands
author Florian Zeitz <florob@babelmonkeys.de>
date Thu, 02 Aug 2012 21:42:00 +0200
parent 5014:b2006c1cfa85
child 5370:7838acadb0fa
line wrap: on
line diff
--- a/plugins/mod_announce.lua	Thu Aug 02 21:28:14 2012 +0200
+++ b/plugins/mod_announce.lua	Thu Aug 02 21:42:00 2012 +0200
@@ -88,7 +88,7 @@
 		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;