Mercurial > prosody-modules
diff mod_delegation/mod_delegation.lua @ 1988:d7c1daaf2dea
mod_delegation: fixed attribute filtering
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 01 Dec 2015 12:43:04 +0100 |
parents | e7b5ab44339c |
children | a1d5214bd369 |
line wrap: on
line diff
--- a/mod_delegation/mod_delegation.lua Tue Nov 24 15:32:54 2015 +0100 +++ b/mod_delegation/mod_delegation.lua Tue Dec 01 12:43:04 2015 +0100 @@ -265,7 +265,7 @@ end if ns_data.filtering then local first_child = stanza.tags[1] - for _, attribute in ns_data.filtering do + for _, attribute in pairs(ns_data.filtering) do -- if any filtered attribute if not present, -- we must continue the normal bahaviour if not first_child.attr[attribute] then