Changeset 24152
- Timestamp:
- 07/01/2008 05:15:15 PM (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/adium-1.2/Source/AIContactStatusEventsPlugin.m
r20107 r24152 321 321 322 322 //Update away/not-away 323 newAwayNumber = [NSNumber numberWithBool:([inObject statusType] == AIAwayStatusType)];323 newAwayNumber = ([inObject statusType] == AIAwayStatusType) ? [NSNumber numberWithBool:YES] : nil; 324 324 325 325 awayChanged = [self updateCache:awayCache … … 401 401 if ((newStatus && !oldStatus) || 402 402 (oldStatus && !newStatus) || 403 ((performCompare && newStatus && oldStatus && ![newStatus performSelector:@selector(compare:) withObject:oldStatus] == 0))) { 404 403 ((performCompare && newStatus && oldStatus && [newStatus performSelector:@selector(compare:) withObject:oldStatus] != NSOrderedSame))) { 405 404 if (newStatus) { 406 405 [cache setObject:newStatus forKey:[inObject internalObjectID]];