Changeset

8871:b67a861e883e

MUC: Advertise support for voice requests
author Kim Alvefur <zash@zash.se>
date Sat, 02 Jun 2018 20:38:19 +0200 (2018-06-02)
parents 8870:dd0291aa3393
children 8872:4d7a822e837f
files plugins/muc/request.lib.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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";
 	{