# HG changeset patch # User Goffi # Date 1429298555 -7200 # Node ID 241c061bb953fa549eba2d7e9427557e1769f57c # Parent 3d83f5337a73df78320ab5a363041790c1ec19e6 mod_delegation: we don't forward stanzas from managing entity itself diff -r 3d83f5337a73 -r 241c061bb953 mod_delegation/mod_delegation.lua --- a/mod_delegation/mod_delegation.lua Fri Apr 17 21:07:05 2015 +0200 +++ b/mod_delegation/mod_delegation.lua Fri Apr 17 21:22:35 2015 +0200 @@ -222,6 +222,10 @@ local ns_data = ns_delegations[namespace] if ns_data then + if stanza.attr.from == ns_data.connected then + -- we don't forward stanzas from managing entity itself + return + end if ns_data.filtering then local first_child = stanza.tags[1] for _, attribute in ns_data.filtering do