diff options
author | Jonas Wielicki <jonas@wielicki.name> | 2018-08-05 11:37:47 +0200 |
---|---|---|
committer | Jonas Wielicki <jonas@wielicki.name> | 2018-08-05 11:37:47 +0200 |
commit | 3c1fedd6d76f4e1b8be21471ab462cbd741665d3 (patch) | |
tree | c30d502445547d631bc11f334603d910a809af81 /plugins | |
parent | 9c75dbe8a8c7c575f0b91af37a0fcea71c883492 (diff) | |
download | prosody-3c1fedd6d76f4e1b8be21471ab462cbd741665d3.tar.gz prosody-3c1fedd6d76f4e1b8be21471ab462cbd741665d3.zip |
pubsub.lib: ignore FORM_TYPE field in config_from_xep0060
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 7c796c20..3fcf5255 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -156,7 +156,7 @@ local function config_from_xep0060(config, strict) config_value = tonumber(config_value); end ret[mapped_name] = config_value; - elseif strict then + elseif strict and config_field ~= "FORM_TYPE" then return nil, "unknown-field", config_field; end end |