aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-06 08:39:46 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-06 08:39:46 +0100
commita5f83247c9e2c5f6aaddb7e93f5590418fe953bd (patch)
treefc8d4344442e9a94949e701ede74f025ca4faddb
parent921c592086596723725e4e74ad62dbd88cd8cfdd (diff)
downloadprosody-a5f83247c9e2c5f6aaddb7e93f5590418fe953bd.tar.gz
prosody-a5f83247c9e2c5f6aaddb7e93f5590418fe953bd.zip
pubsub.lib: Add comment about tonumber hack
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 0119da14..03a2e390 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -152,6 +152,9 @@ local function config_from_xep0060(config, strict)
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