Changeset 3511

Show
Ignore:
Timestamp:
12/31/06 14:00:03 (2 years ago)
Author:
timothy
Message:

Buddy list clean up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Models/JVBuddy.h

    r3491 r3511  
    1010 
    1111@class ABPerson; 
    12  
    13 extern NSString * const JVBuddyAddressBookIRCNicknameProperty; 
    14 extern NSString* const JVBuddyAddressBookSpeechVoiceProperty; 
    1512 
    1613typedef enum { 
  • trunk/Models/JVBuddy.m

    r3510 r3511  
    1515 
    1616static JVBuddyName _mainPreferredName = JVBuddyFullName; 
    17  
    18 NSString* const JVBuddyAddressBookIRCNicknameProperty = @"IRCNickname"; 
    19 NSString* const JVBuddyAddressBookSpeechVoiceProperty = @"cc.javelin.colloquy.JVBuddy.TTSvoice"; 
    2017 
    2118@implementation JVBuddy 
     
    631628        while( ( user = [enumerator nextObject] ) ) 
    632629                if( [[user connection] isEqual:connection] ) 
    633                         [_users removeObject:user]; 
    634  
    635         if( [[[self activeUser] connection] isEqual:connection] ) 
    636                 [self setActiveUser:[_users anyObject]]; 
    637  
    638         if( ! [_users count] ) 
    639                 [[NSNotificationCenter defaultCenter] postNotificationName:JVBuddyWentOfflineNotification object:self userInfo:nil]; 
     630                        [self _removeUser:user]; 
    640631} 
    641632