mod_delegation/mod_delegation.lua
changeset 1719 241c061bb953
parent 1718 3d83f5337a73
child 1720 29dfdfc767b4
--- 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