# HG changeset patch # User Jonas Wielicki # Date 1533461867 -7200 # Node ID 5d5aa1c4fe343e8a7af671ebd231561db1606099 # Parent 9f36f5c14545c535699a94a1e859fa7612428e3a pubsub.lib: ignore FORM_TYPE field in config_from_xep0060 diff -r 9f36f5c14545 -r 5d5aa1c4fe34 plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Sun Aug 05 02:01:58 2018 +0200 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sun Aug 05 11:37:47 2018 +0200 @@ -156,7 +156,7 @@ 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