aboutsummaryrefslogtreecommitdiffstats
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
commit908099c06a1c4cd1555c2c19c6c8651f86b7fea7 (patch)
tree5f7ac341b46e652fb92a56efa0a8c6c42bee4c53
parent9094288efa4ca5b2f3e7ff98842c0b0bc149c786 (diff)
downloadprosody-908099c06a1c4cd1555c2c19c6c8651f86b7fea7.tar.gz
prosody-908099c06a1c4cd1555c2c19c6c8651f86b7fea7.zip
mod_announce: Depend on mod_adhoc for consistent behaviour (thanks meaz, Link Mauve)
-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);