comparison plugins/muc/description.lib.lua @ 9034:1c709e3d2e5e

MUC: Improve labels of all config form items
author Matthew Wild <mwild1@gmail.com>
date Fri, 13 Jul 2018 13:22:40 +0100
parents f25fa63750fb
children
comparison
equal deleted inserted replaced
9033:f1b6efd5b379 9034:1c709e3d2e5e
30 local function add_form_option(event) 30 local function add_form_option(event)
31 table.insert(event.form, { 31 table.insert(event.form, {
32 name = "muc#roomconfig_roomdesc"; 32 name = "muc#roomconfig_roomdesc";
33 type = "text-single"; 33 type = "text-single";
34 label = "Description"; 34 label = "Description";
35 desc = "A brief description of the room";
35 value = get_description(event.room) or ""; 36 value = get_description(event.room) or "";
36 }); 37 });
37 end 38 end
38 39
39 module:hook("muc-disco#info", add_disco_form); 40 module:hook("muc-disco#info", add_disco_form);