From d3d58b769748738a7a8159b7d01ef3def597d815 Mon Sep 17 00:00:00 2001 From: Florian Zeitz Date: Fri, 15 Apr 2011 02:51:17 +0200 Subject: [PATCH] Don't answer to IQs of type "error" or "result" --- src/XMPPConnection.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index c66898d..f2a4059 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -565,7 +565,8 @@ handled = [delegate connection: self didReceiveIQ: iq]; - if (!handled) { + if (!handled && ![[iq type] isEqual: @"error"] + && ![[iq type] isEqual: @"result"]) { XMPPJID *from = [iq from]; XMPPJID *to = [iq to]; OFXMLElement *error;