Comparison

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
comparison
equal deleted inserted replaced
5075:4d939d2b1574 5076:88fb94df9b18
86 local count = send_to_online(message, data.to); 86 local count = send_to_online(message, data.to);
87 87
88 module:log("info", "Announcement sent to %d online users", count); 88 module:log("info", "Announcement sent to %d online users", count);
89 return { status = "completed", info = ("Announcement sent to %d online users"):format(count) }; 89 return { status = "completed", info = ("Announcement sent to %d online users"):format(count) };
90 else 90 else
91 return { status = "executing", form = announce_layout }, "executing"; 91 return { status = "executing", actions = {"next", "complete", default = "complete"}, form = announce_layout }, "executing";
92 end 92 end
93 93
94 return true; 94 return true;
95 end 95 end
96 96