Software /
code /
prosody
File
plugins/muc/config_form_sections.lib.lua @ 11194:9d1ce6f28401
tools/form2table: Convert XEP-0004 dataform from XML to util.dataforms Lua format
Used this to generate code for a number of PubSub forms IIRC
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 28 Oct 2020 23:15:52 +0100 |
parent | 9036:bb4dcc555091 |
line wrap: on
line source
module:hook("muc-config-form", function(event) table.insert(event.form, { type = "fixed"; value = "Room information"; }); end, 100); module:hook("muc-config-form", function(event) table.insert(event.form, { type = "fixed"; value = "Access to the room"; }); end, 90); module:hook("muc-config-form", function(event) table.insert(event.form, { type = "fixed"; value = "Permissions in the room"; }); end, 80); module:hook("muc-config-form", function(event) table.insert(event.form, { type = "fixed"; value = "Other options"; }); end, 70);