From 89adb96dbc7952f56a9f56a31d35b59d78cbc74d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 2 Jun 2018 20:38:19 +0200 Subject: MUC: Advertise support for voice requests --- plugins/muc/request.lib.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/muc') diff --git a/plugins/muc/request.lib.lua b/plugins/muc/request.lib.lua index fdfb9be9..d7fa9426 100644 --- a/plugins/muc/request.lib.lua +++ b/plugins/muc/request.lib.lua @@ -10,6 +10,10 @@ local st = require "util.stanza"; local jid_resource = require "util.jid".resource; +module:hook("muc-disco#info", function(event) + event.reply:tag("feature", {var = "http://jabber.org/protocol/muc#request"}):up(); +end); + local voice_request_form = require "util.dataforms".new({ title = "Voice Request"; { -- cgit v1.2.3