# HG changeset patch # User Kim Alvefur # Date 1527964699 -7200 # Node ID b67a861e883e525c45b1c7132e20065ddaeef84f # Parent dd0291aa33938d05d4d06e88750dced8013c0afe MUC: Advertise support for voice requests diff -r dd0291aa3393 -r b67a861e883e plugins/muc/request.lib.lua --- a/plugins/muc/request.lib.lua Sun Jun 03 20:54:53 2018 +0200 +++ b/plugins/muc/request.lib.lua Sat Jun 02 20:38:19 2018 +0200 @@ -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"; {