aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_announce.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-02 23:41:36 +0200
committerKim Alvefur <zash@zash.se>2018-07-02 23:41:36 +0200
commit6c922fe328bed78d8efda0560cef18a081961139 (patch)
tree5f7ac341b46e652fb92a56efa0a8c6c42bee4c53 /plugins/mod_announce.lua
parentc90745beae49e19da4538ab81297e4973db4533e (diff)
downloadprosody-6c922fe328bed78d8efda0560cef18a081961139.tar.gz
prosody-6c922fe328bed78d8efda0560cef18a081961139.zip
mod_announce: Depend on mod_adhoc for consistent behaviour (thanks meaz, Link Mauve)
Diffstat (limited to 'plugins/mod_announce.lua')
-rw-r--r--plugins/mod_announce.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_announce.lua b/plugins/mod_announce.lua
index ee3bb5b7..fc4eea6f 100644
--- a/plugins/mod_announce.lua
+++ b/plugins/mod_announce.lua
@@ -93,6 +93,7 @@ function announce_handler(self, data, state)
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);