Comparison

plugins/mod_server_contact_info.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 11584:8bea29d1f82d
child 12981:d795e3bbc0e3
comparison
equal deleted inserted replaced
12976:a187600ec7d6 12977:74b9e05af71e
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local array = require "util.array"; 9 local array = require "prosody.util.array";
10 local jid = require "util.jid"; 10 local jid = require "prosody.util.jid";
11 local url = require "socket.url"; 11 local url = require "socket.url";
12 12
13 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo 13 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo
14 local form_layout = require "util.dataforms".new({ 14 local form_layout = require "prosody.util.dataforms".new({
15 { var = "FORM_TYPE"; type = "hidden"; value = "http://jabber.org/network/serverinfo"; }; 15 { var = "FORM_TYPE"; type = "hidden"; value = "http://jabber.org/network/serverinfo"; };
16 { name = "abuse", var = "abuse-addresses", type = "list-multi" }, 16 { name = "abuse", var = "abuse-addresses", type = "list-multi" },
17 { name = "admin", var = "admin-addresses", type = "list-multi" }, 17 { name = "admin", var = "admin-addresses", type = "list-multi" },
18 { name = "feedback", var = "feedback-addresses", type = "list-multi" }, 18 { name = "feedback", var = "feedback-addresses", type = "list-multi" },
19 { name = "sales", var = "sales-addresses", type = "list-multi" }, 19 { name = "sales", var = "sales-addresses", type = "list-multi" },