aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/history.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-07-13 13:22:40 +0100
committerMatthew Wild <mwild1@gmail.com>2018-07-13 13:22:40 +0100
commit1a0e7d5a10f2140d05dd54531c4ba1f35768ab93 (patch)
tree65da4886c507b3bbc693521498c8520792e3ff80 /plugins/muc/history.lib.lua
parentc80aae6deea828a5178a9af5dc5981705ab46175 (diff)
downloadprosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.tar.gz
prosody-1a0e7d5a10f2140d05dd54531c4ba1f35768ab93.zip
MUC: Improve labels of all config form items
Diffstat (limited to 'plugins/muc/history.lib.lua')
-rw-r--r--plugins/muc/history.lib.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua
index 100ab720..36b1b260 100644
--- a/plugins/muc/history.lib.lua
+++ b/plugins/muc/history.lib.lua
@@ -48,13 +48,15 @@ module:hook("muc-config-form", function(event)
table.insert(event.form, {
name = "muc#roomconfig_historylength";
type = "text-single";
- label = "Maximum Number of History Messages Returned by Room";
+ label = "Maximum number of history messages returned by room";
+ desc = "Specify the maximum number of previous messages that should be sent to users when they join the room";
value = tostring(get_historylength(event.room));
});
table.insert(event.form, {
name = 'muc#roomconfig_defaulthistorymessages',
type = 'text-single',
- label = 'Default Number of History Messages Returned by Room',
+ label = 'Default number of history messages returned by room',
+ desc = "Specify the number of previous messages sent to new users when they join the room";
value = tostring(get_defaulthistorymessages(event.room))
});
end, 100-10);