Mercurial > prosody-modules
comparison mod_server_info/mod_server_info.lua @ 5922:f408b8e603af
mod_server_info: fix dataforms require
author | Nicholas George <wirlaburla@worlio.com> |
---|---|
date | Sat, 08 Jun 2024 03:28:25 -0500 |
parents | ed82916e5796 |
children |
comparison
equal
deleted
inserted
replaced
5921:e67fc7b66c13 | 5922:f408b8e603af |
---|---|
1 -- mod_server_info imported from Prosody commit 1ce18cb3e6cc for the benefit | 1 -- mod_server_info imported from Prosody commit 1ce18cb3e6cc for the benefit |
2 -- of 0.12 deployments. This community version of the module will not load in | 2 -- of 0.12 deployments. This community version of the module will not load in |
3 -- newer Prosody versions, which include their own copy of the module. | 3 -- newer Prosody versions, which include their own copy of the module. |
4 --% conflicts: mod_server_info | 4 --% conflicts: mod_server_info |
5 | 5 |
6 local dataforms = require "prosody.util.dataforms"; | 6 local dataforms = require "util.dataforms"; |
7 | 7 |
8 local server_info_config = module:get_option("server_info", {}); | 8 local server_info_config = module:get_option("server_info", {}); |
9 local server_info_custom_fields = module:get_option_array("server_info_extensions"); | 9 local server_info_custom_fields = module:get_option_array("server_info_extensions"); |
10 | 10 |
11 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo | 11 -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo |