From 9487ed1cca061b54343b5307c48feebfb7a47fa1 Mon Sep 17 00:00:00 2001 From: Jonas Wielicki Date: Sun, 5 Aug 2018 11:37:47 +0200 Subject: pubsub.lib: ignore FORM_TYPE field in config_from_xep0060 --- plugins/mod_pubsub/pubsub.lib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub') 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 -- cgit v1.2.3