Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_announce.lua Mon Jul 02 11:31:47 2018 +0200 +++ b/plugins/mod_announce.lua Mon Jul 02 23:41:36 2018 +0200 @@ -93,6 +93,7 @@ end end +module:depends "adhoc"; local adhoc_new = module:require "adhoc".new; local announce_desc = adhoc_new("Send Announcement to Online Users", "http://jabber.org/protocol/admin#announce", announce_handler, "admin"); module:provides("adhoc", announce_desc);