ObjIRC  Check-in [22699c973b]

Overview
Comment:Fix handling of nick changes.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 22699c973b35462f3b8d3c3d598ea252d1355030aff34bc0dc7958a1342df2a6
User & Date: js on 2013-02-14 23:21:40
Other Links: manifest | tags
Context
2013-02-16
22:42
Fix wrong selector name. check-in: 09ffe6e374 user: js tags: trunk
2013-02-14
23:21
Fix handling of nick changes. check-in: 22699c973b user: js tags: trunk
23:03
Improve Makefile. check-in: 8575560a38 user: js tags: trunk
Changes

Modified src/IRCConnection.m from [41b9bcc218] to [d3026e4a44].

465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
		user = [IRCUser IRCUserWithString: who];

		if ([[user nickname] isEqual: _nickname]) {
			[_nickname release];
			_nickname = [nickname copy];
		}

		enumerator = [_channels keyEnumerator];
		while ((channel = [enumerator nextObject]) != nil) {
			if ([channel containsObject: [user nickname]]) {
				[channel removeObject: [user nickname]];
				[channel addObject: nickname];
			}
		}








|







465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
		user = [IRCUser IRCUserWithString: who];

		if ([[user nickname] isEqual: _nickname]) {
			[_nickname release];
			_nickname = [nickname copy];
		}

		enumerator = [_channels objectEnumerator];
		while ((channel = [enumerator nextObject]) != nil) {
			if ([channel containsObject: [user nickname]]) {
				[channel removeObject: [user nickname]];
				[channel addObject: nickname];
			}
		}