# HG changeset patch # User Goffi # Date 1438361046 -7200 # Node ID 7bfc23b2c0381e8d57967fd45d1fcad04308afdd # Parent d85d5b0bf9773f1c7f67d168a12f375cdf9d8403 mod_delegation: fixed handling of results without children diff -r d85d5b0bf977 -r 7bfc23b2c038 mod_delegation/mod_delegation.lua --- a/mod_delegation/mod_delegation.lua Thu May 07 23:39:54 2015 +0200 +++ b/mod_delegation/mod_delegation.lua Fri Jul 31 18:44:06 2015 +0200 @@ -185,7 +185,7 @@ local iq = forwarded.tags[1] if #forwarded ~= 1 or iq.name ~= "iq" or iq.attr.xmlns ~= 'jabber:client' or - (iq.attr.type =='result' and #iq ~= 1) or + (iq.attr.type =='result' and #iq > 1) or (iq.attr.type == 'error' and #iq > 2) then module:log("warn", "ignoring invalid iq result from managing entity %s", stanza.attr.from) stanza_cache[stanza.attr.from][stanza.attr.id] = nil