Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8870:dd0291aa3393 | 8871:b67a861e883e |
---|---|
7 -- COPYING file in the source package for more information. | 7 -- COPYING file in the source package for more information. |
8 -- | 8 -- |
9 | 9 |
10 local st = require "util.stanza"; | 10 local st = require "util.stanza"; |
11 local jid_resource = require "util.jid".resource; | 11 local jid_resource = require "util.jid".resource; |
12 | |
13 module:hook("muc-disco#info", function(event) | |
14 event.reply:tag("feature", {var = "http://jabber.org/protocol/muc#request"}):up(); | |
15 end); | |
12 | 16 |
13 local voice_request_form = require "util.dataforms".new({ | 17 local voice_request_form = require "util.dataforms".new({ |
14 title = "Voice Request"; | 18 title = "Voice Request"; |
15 { | 19 { |
16 name = "FORM_TYPE"; | 20 name = "FORM_TYPE"; |