Comparison

plugins/muc/request.lib.lua @ 12977:74b9e05af71e

plugins: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 24 Mar 2023 13:15:28 +0100
parent 9703:0cfb7b3593eb
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
5 -- 5 --
6 -- This project is MIT/X11 licensed. Please see the 6 -- This project is MIT/X11 licensed. Please see the
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 "prosody.util.stanza";
11 local jid_resource = require "util.jid".resource; 11 local jid_resource = require "prosody.util.jid".resource;
12 12
13 module:hook("muc-disco#info", function(event) 13 module:hook("muc-disco#info", function(event)
14 event.reply:tag("feature", {var = "http://jabber.org/protocol/muc#request"}):up(); 14 event.reply:tag("feature", {var = "http://jabber.org/protocol/muc#request"}):up();
15 end); 15 end);
16 16
17 local voice_request_form = require "util.dataforms".new({ 17 local voice_request_form = require "prosody.util.dataforms".new({
18 title = "Voice Request"; 18 title = "Voice Request";
19 { 19 {
20 name = "FORM_TYPE"; 20 name = "FORM_TYPE";
21 type = "hidden"; 21 type = "hidden";
22 value = "http://jabber.org/protocol/muc#request"; 22 value = "http://jabber.org/protocol/muc#request";