Software /
code /
prosody
Diff
plugins/muc/request.lib.lua @ 8871:b67a861e883e
MUC: Advertise support for voice requests
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Jun 2018 20:38:19 +0200 |
parent | 8865:2a8bbfcb6868 |
child | 9034:1c709e3d2e5e |
line wrap: on
line diff
--- 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"; {