Changeset

9123:5d5aa1c4fe34

pubsub.lib: ignore FORM_TYPE field in config_from_xep0060
author Jonas Wielicki <jonas@wielicki.name>
date Sun, 05 Aug 2018 11:37:47 +0200
parents 9116:9f36f5c14545
children 9124:dcc490f0044d
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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