Comparison

plugins/mod_announce.lua @ 8960:9d0d1e427b82

mod_announce: Depend on mod_adhoc for consistent behaviour (thanks meaz, Link Mauve)
author Kim Alvefur <zash@zash.se>
date Mon, 02 Jul 2018 23:41:36 +0200
parent 8680:1cc9a293e958
child 8974:71500c68fed4
comparison
equal deleted inserted replaced
8959:ab18a9a9fd48 8960:9d0d1e427b82
91 else 91 else
92 return { status = "executing", actions = {"next", "complete", default = "complete"}, form = announce_layout }, "executing"; 92 return { status = "executing", actions = {"next", "complete", default = "complete"}, form = announce_layout }, "executing";
93 end 93 end
94 end 94 end
95 95
96 module:depends "adhoc";
96 local adhoc_new = module:require "adhoc".new; 97 local adhoc_new = module:require "adhoc".new;
97 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin"); 98 local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin");
98 module:provides("adhoc", announce_desc); 99 module:provides("adhoc", announce_desc);
99 100