ObjXMPP  Check-in [1a040269e5]

Overview
Comment:Adjust to recent ObjFW changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1a040269e5d88dd95d9165c2768306452c23740cb15e9eacdb47f4200fd14046
User & Date: js on 2012-10-14 11:04:42
Other Links: manifest | tags
Context
2012-10-17
20:24
Close connection when an exception occurs. check-in: b88cb91f47 user: js tags: trunk
2012-10-14
11:04
Adjust to recent ObjFW changes. check-in: 1a040269e5 user: js tags: trunk
2012-09-20
00:35
Handle the connection in the run loop. check-in: 71cf6454e4 user: js tags: trunk
Changes

Modified src/XMPPJID.m from [1a9c48ba03] to [1b4f40a9b1].

50
51
52
53
54
55
56
57
58


59
60
61
62
63
64
65
50
51
52
53
54
55
56


57
58
59
60
61
62
63
64
65







-
-
+
+







	self = [super init];

	if (str == nil) {
		[self release];
		return nil;
	}

	nodesep = [str indexOfFirstOccurrenceOfString: @"@"];
	resourcesep = [str indexOfFirstOccurrenceOfString: @"/"];
	nodesep = [str rangeOfString: @"@"].location;
	resourcesep = [str rangeOfString: @"/"].location;

	if (nodesep == SIZE_MAX)
		[self setNode: nil];
	else
		[self setNode: [str substringWithRange: of_range(0, nodesep)]];

	if (resourcesep == SIZE_MAX) {