Software /
code /
prosody-modules
Changeset
1715:241c061bb953
mod_delegation: we don't forward stanzas from managing entity itself
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 17 Apr 2015 21:22:35 +0200 |
parents | 1714:3d83f5337a73 |
children | 1716:29dfdfc767b4 |
files | mod_delegation/mod_delegation.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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