Software /
code /
prosody
Changeset
9127:decad04ec184
pubsub.lib: Add comment about tonumber hack
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 06 Aug 2018 08:39:46 +0100 |
parents | 9126:3dd5034a3233 |
children | 9128:a4a923e493da |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 08:29:49 2018 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Mon Aug 06 08:39:46 2018 +0100 @@ -152,6 +152,9 @@ for config_field, config_value in pairs(config) do local mapped_name = reverse_config_field_map[config_field]; if mapped_name then + -- FIXME: The intention is to add "subtype" support to + -- util.dataforms, which will remove the need for this + -- ugly hack if mapped_name == "max_items" then config_value = tonumber(config_value); end