Changeset 3740

Show
Ignore:
Timestamp:
09/25/07 01:35:09 (1 year ago)
Author:
timothy
Message:

Fixes the problem where you can't send messages after reconnecting to a server. #62 and #1105

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Panels/JVChatRoomPanel.m

    r3694 r3740  
    4646                _preferredTabCompleteNicknames = [[NSMutableArray allocWithZone:nil] initWithCapacity:10]; 
    4747                _nextMessageAlertMembers = [[NSMutableSet allocWithZone:nil] initWithCapacity:5]; 
     48                _cantSendMessages = YES; 
    4849                _kickedFromRoom = NO; 
    4950                _keepAfterPart = NO; 
     
    741742- (void) _didConnect:(NSNotification *) notification { 
    742743        if( ! _disposed ) [[self target] join]; 
    743         _cantSendMessages = YES; 
    744744} 
    745745 
  • trunk/Panels/JVDirectChatPanel.m

    r3718 r3740  
    15991599- (void) _didConnect:(NSNotification *) notification { 
    16001600        [self addEventMessageToDisplay:NSLocalizedString( @"You reconnected to the server.", "reconnected to server status message" ) withName:@"reconnected" andAttributes:nil]; 
    1601         _cantSendMessages = NO; 
     1601        if( [self isMemberOfClass:[JVDirectChatPanel class]] ) 
     1602                _cantSendMessages = NO; 
    16021603} 
    16031604