Adium

Changeset 22262

Show
Ignore:
Timestamp:
01/11/2008 10:38:37 PM (10 months ago)
Author:
evands
Message:

merged [22261]: Work around a bug in old openfire servers if no password is sent in which they send 'read error' instead of and invalid password error code. Fixes #8803

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/adium-1.2/Plugins/Purple Service/ESPurpleJabberAccount.m

    r22210 r22262  
    415415                ([self shouldVerifyCertificates])) { 
    416416                shouldAttemptReconnect = AIReconnectNever; 
    417         } 
    418  
     417        } else if (disconnectionError && 
     418                           [*disconnectionError isEqualToString:[NSString stringWithfUTF8String:_("Read Error")]] && 
     419                           ![password length]) { 
     420                //No password specified + "Read Error" = old openfire bug if we send no password.  Get a password from the user. 
     421                [self serverReportedInvalidPassword]; 
     422                shouldAttemptReconnect = AIReconnectImmediately; 
     423        } 
     424  
    419425        return shouldAttemptReconnect; 
    420426}