Mercurial > prosody-modules
comparison mod_server_contact_info/mod_server_contact_info.lua @ 2320:d6a3362ca256
mod_server_contact_info: Add copyright header
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 01 Oct 2016 17:16:39 +0200 |
| parents | 86128b948fed |
| children | d18a91c030df |
comparison
equal
deleted
inserted
replaced
| 2319:86128b948fed | 2320:d6a3362ca256 |
|---|---|
| 1 -- This plugin implements http://xmpp.org/extensions/xep-0157.html | 1 -- XEP-0157: Contact Addresses for XMPP Services for Prosody |
| 2 -- | |
| 3 -- Copyright (C) 2011-2016 Kim Alvefur | |
| 4 -- | |
| 5 -- This file is MIT/X11 licensed. | |
| 6 -- | |
| 7 | |
| 2 local t_insert = table.insert; | 8 local t_insert = table.insert; |
| 3 local array = require "util.array"; | 9 local array = require "util.array"; |
| 4 local df_new = require "util.dataforms".new; | 10 local df_new = require "util.dataforms".new; |
| 5 | 11 |
| 6 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo | 12 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo |
| 27 end | 33 end |
| 28 | 34 |
| 29 local form_layout = { | 35 local form_layout = { |
| 30 { value = "http://jabber.org/network/serverinfo"; type = "hidden"; name = "FORM_TYPE"; }; | 36 { value = "http://jabber.org/network/serverinfo"; type = "hidden"; name = "FORM_TYPE"; }; |
| 31 }; | 37 }; |
| 38 | |
| 32 local form_values = {}; | 39 local form_values = {}; |
| 33 | 40 |
| 34 for t in pairs(valid_types) do | 41 for t in pairs(valid_types) do |
| 35 local addresses = contact_config[t]; | 42 local addresses = contact_config[t]; |
| 36 if addresses then | 43 if addresses then |
