Changeset 3747

Show
Ignore:
Timestamp:
10/02/07 20:43:30 (9 months ago)
Author:
akempgen
Message:

workaround for a freenode (hyperion) bug where the ircd doesnt reply with 318 (RPL_ENDOFWHOIS) in case of 401 (ERR_NOSUCHNICK): end the whois when receiving the error instead of waiting for the proper reply. #1112

  • The Get Info (/whois) window for a non existant user will not keep waiting forever but mark him offline instead
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/MVIRCChatConnection.m

    r3722 r3747  
    28092809                MVChatUser *user = [self chatUserWithUniqueIdentifier:[self _stringFromPossibleData:[parameters objectAtIndex:1]]]; 
    28102810                [self _markUserAsOffline:user]; 
     2811                //workaround for a freenode (hyperion) bug where the ircd doesnt reply with 318 (RPL_ENDOFWHOIS) in case of 401 (ERR_NOSUCHNICK): end the whois when receiving 401 
     2812                [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:MVChatUserInformationUpdatedNotification object:user userInfo:nil]; 
    28112813                if( [_pendingWhoisUsers containsObject:user] ) { 
    28122814                        [_pendingWhoisUsers removeObject:user];