Changeset 1296
- Timestamp:
- 05/21/04 22:26:44 (5 years ago)
- Files:
-
- WiredClient/trunk/WCChat.m (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/WCChat.m
r1295 r1296 1 /* $Id: WCChat.m,v 1.4 2 2004/05/21 19:32:03morris Exp $ */1 /* $Id: WCChat.m,v 1.43 2004/05/21 20:26:44 morris Exp $ */ 2 2 3 3 /* … … 323 323 324 324 - (void)userHasJoined:(NSNotification *)notification { 325 NSString *argument, *cid, *uid, *idle, *admin, *icon, *nick, *login, *address, *host , *status = NULL, *image = NULL;325 NSString *argument, *cid, *uid, *idle, *admin, *icon, *nick, *login, *address, *host = NULL, *status = NULL, *image = NULL; 326 326 NSArray *fields; 327 327 NSData *data; … … 347 347 login = [fields objectAtIndex:6]; 348 348 address = [fields objectAtIndex:7]; 349 host = [fields objectAtIndex:8]; 350 349 350 // --- pre-1.2 servers did not send this 351 if([fields count] >= 9) 352 host = [fields objectAtIndex:8]; 353 351 354 // --- protocol 1.1 352 355 if([_connection protocol] >= 1.1) { … … 367 370 [user setLogin:login]; 368 371 [user setAddress:address]; 369 [user setHost:host];370 372 [user setJoinTime:[NSDate date]]; 373 374 // --- pre-1.2 servers did not send this 375 if([fields count] >= 9) 376 [user setHost:host]; 371 377 372 378 // --- protocol 1.1 373 379 if([_connection protocol] >= 1.1) { 374 // --- set status 380 // --- set values 381 [user setHost:host]; 375 382 [user setStatus:status]; 376 383
