Don't answer to IQs of type "error" or "result"

This commit is contained in:
Florian Zeitz 2011-04-15 02:51:17 +02:00
parent d47fdd3380
commit d3d58b7697

View file

@ -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;