mod_delegation/mod_delegation.lua
changeset 1778 7bfc23b2c038
parent 1728 2440a75e868f
child 1780 e7b5ab44339c
equal deleted inserted replaced
1729:d85d5b0bf977 1778:7bfc23b2c038
   183 	end
   183 	end
   184 
   184 
   185 	local iq = forwarded.tags[1]
   185 	local iq = forwarded.tags[1]
   186 	if #forwarded ~= 1 or iq.name ~= "iq" or
   186 	if #forwarded ~= 1 or iq.name ~= "iq" or
   187         iq.attr.xmlns ~= 'jabber:client' or
   187         iq.attr.xmlns ~= 'jabber:client' or
   188 		(iq.attr.type =='result' and #iq ~= 1) or
   188 		(iq.attr.type =='result' and #iq > 1) or
   189 		(iq.attr.type == 'error' and #iq > 2) then
   189 		(iq.attr.type == 'error' and #iq > 2) then
   190 		module:log("warn", "ignoring invalid iq result from managing entity %s", stanza.attr.from)
   190 		module:log("warn", "ignoring invalid iq result from managing entity %s", stanza.attr.from)
   191 		stanza_cache[stanza.attr.from][stanza.attr.id] = nil
   191 		stanza_cache[stanza.attr.from][stanza.attr.id] = nil
   192 		return true
   192 		return true
   193 	end
   193 	end