equal
deleted
inserted
replaced
263 -- we don't forward stanzas from managing entity itself |
263 -- we don't forward stanzas from managing entity itself |
264 return |
264 return |
265 end |
265 end |
266 if ns_data.filtering then |
266 if ns_data.filtering then |
267 local first_child = stanza.tags[1] |
267 local first_child = stanza.tags[1] |
268 for _, attribute in ns_data.filtering do |
268 for _, attribute in pairs(ns_data.filtering) do |
269 -- if any filtered attribute if not present, |
269 -- if any filtered attribute if not present, |
270 -- we must continue the normal bahaviour |
270 -- we must continue the normal bahaviour |
271 if not first_child.attr[attribute] then |
271 if not first_child.attr[attribute] then |
272 -- Filtered attribute is not present, we do normal workflow |
272 -- Filtered attribute is not present, we do normal workflow |
273 return; |
273 return; |