aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-06-02 20:38:19 +0200
committerKim Alvefur <zash@zash.se>2018-06-02 20:38:19 +0200
commitee9861460c1fbee1edefb7b22822d3d33a159142 (patch)
tree852c04bc0e72bb36bfe471f0295e3562b391c7e9 /plugins
parentfbd20cf27c3920446bcbaa00af6f2115226dff5e (diff)
downloadprosody-ee9861460c1fbee1edefb7b22822d3d33a159142.tar.gz
prosody-ee9861460c1fbee1edefb7b22822d3d33a159142.zip
MUC: Advertise support for voice requests
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/request.lib.lua4
1 files changed, 4 insertions, 0 deletions
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";
{