Comparison

plugins/muc/whois.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
parent 7401:e16b3fd0bd80
child 9035:173c0e16e704
comparison
equal deleted inserted replaced
9033:f1b6efd5b379 9034:1c709e3d2e5e
30 module:hook("muc-config-form", function(event) 30 module:hook("muc-config-form", function(event)
31 local whois = get_whois(event.room); 31 local whois = get_whois(event.room);
32 table.insert(event.form, { 32 table.insert(event.form, {
33 name = 'muc#roomconfig_whois', 33 name = 'muc#roomconfig_whois',
34 type = 'list-single', 34 type = 'list-single',
35 label = 'Who May Discover Real JIDs?', 35 label = 'Addresses (JIDs) of room occupants may be viewed by:',
36 value = { 36 value = {
37 { value = 'moderators', label = 'Moderators Only', default = whois == 'moderators' }, 37 { value = 'moderators', label = 'Moderators only', default = whois == 'moderators' },
38 { value = 'anyone', label = 'Anyone', default = whois == 'anyone' } 38 { value = 'anyone', label = 'Anyone', default = whois == 'anyone' }
39 } 39 }
40 }); 40 });
41 end, 100-9); 41 end, 100-9);
42 42