Software /
code /
prosody
Comparison
plugins/muc/history.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 | 8794:0e2c1c4d4f78 |
child | 9035:173c0e16e704 |
comparison
equal
deleted
inserted
replaced
9033:f1b6efd5b379 | 9034:1c709e3d2e5e |
---|---|
46 | 46 |
47 module:hook("muc-config-form", function(event) | 47 module:hook("muc-config-form", function(event) |
48 table.insert(event.form, { | 48 table.insert(event.form, { |
49 name = "muc#roomconfig_historylength"; | 49 name = "muc#roomconfig_historylength"; |
50 type = "text-single"; | 50 type = "text-single"; |
51 label = "Maximum Number of History Messages Returned by Room"; | 51 label = "Maximum number of history messages returned by room"; |
52 desc = "Specify the maximum number of previous messages that should be sent to users when they join the room"; | |
52 value = tostring(get_historylength(event.room)); | 53 value = tostring(get_historylength(event.room)); |
53 }); | 54 }); |
54 table.insert(event.form, { | 55 table.insert(event.form, { |
55 name = 'muc#roomconfig_defaulthistorymessages', | 56 name = 'muc#roomconfig_defaulthistorymessages', |
56 type = 'text-single', | 57 type = 'text-single', |
57 label = 'Default Number of History Messages Returned by Room', | 58 label = 'Default number of history messages returned by room', |
59 desc = "Specify the number of previous messages sent to new users when they join the room"; | |
58 value = tostring(get_defaulthistorymessages(event.room)) | 60 value = tostring(get_defaulthistorymessages(event.room)) |
59 }); | 61 }); |
60 end, 100-10); | 62 end, 100-10); |
61 | 63 |
62 module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event) | 64 module:hook("muc-config-submitted/muc#roomconfig_historylength", function(event) |