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
commit89adb96dbc7952f56a9f56a31d35b59d78cbc74d (patch)
tree852c04bc0e72bb36bfe471f0295e3562b391c7e9 /plugins
parent4bcc8878b92a71710934bc6cc41616d25bfa22de (diff)
downloadprosody-89adb96dbc7952f56a9f56a31d35b59d78cbc74d.tar.gz
prosody-89adb96dbc7952f56a9f56a31d35b59d78cbc74d.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";
{