Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 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 |
parent | 9116:9f36f5c14545 |
child | 9124:dcc490f0044d |
comparison
equal
deleted
inserted
replaced
9116:9f36f5c14545 | 9123:5d5aa1c4fe34 |
---|---|
154 if mapped_name then | 154 if mapped_name then |
155 if mapped_name == "max_items" then | 155 if mapped_name == "max_items" then |
156 config_value = tonumber(config_value); | 156 config_value = tonumber(config_value); |
157 end | 157 end |
158 ret[mapped_name] = config_value; | 158 ret[mapped_name] = config_value; |
159 elseif strict then | 159 elseif strict and config_field ~= "FORM_TYPE" then |
160 return nil, "unknown-field", config_field; | 160 return nil, "unknown-field", config_field; |
161 end | 161 end |
162 end | 162 end |
163 return ret; | 163 return ret; |
164 end | 164 end |