ObjXMPP  Check-in [0e2d960203]

Overview
Comment:Don't answer to IQs of type "error" or "result"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0e2d9602032768ad41782d24cdadb9416344ec16665309368faaf65efaf40d88
User & Date: florob@babelmonkeys.de on 2011-04-15 00:51:17
Other Links: manifest | tags
Context
2011-04-23
20:40
Adjust to recent ObjFW changes. check-in: d7038ec36d user: js tags: trunk
2011-04-15
00:51
Don't answer to IQs of type "error" or "result" check-in: 0e2d960203 user: florob@babelmonkeys.de tags: trunk
00:41
Handle stream errors check-in: ccfc230e32 user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPConnection.m from [60d0b36b6c] to [095d6e4f35].

561
562
563
564
565
566
567
568


569
570
571
572
573
574
575
561
562
563
564
565
566
567

568
569
570
571
572
573
574
575
576







-
+
+







		return;
	}

	if ([delegate respondsToSelector: @selector(connection:didReceiveIQ:)])
		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;

		[iq setType: @"error"];
		[iq setTo: from];
		[iq setFrom: to];