From 908099c06a1c4cd1555c2c19c6c8651f86b7fea7 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 2 Jul 2018 23:41:36 +0200 Subject: mod_announce: Depend on mod_adhoc for consistent behaviour (thanks meaz, Link Mauve) --- plugins/mod_announce.lua | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.3