Changeset c495217


Ignore:
Timestamp:
2010-07-24T13:28:36Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
c8791f2
Parents:
ccc595b
Message:

Inverting allow_reconnect logic on login failures. Automatic reconnects were
getting im.bitlbee.org IP-banned sometimes. This fix keeps it happy for
some time already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    rccc595b rc495217  
    511511        {
    512512                char *errstr;
    513                 int allow_reconnect = TRUE;
     513                int allow_reconnect = FALSE;
    514514               
    515515                yd->logged_in = FALSE;
     
    521521                else if( succ == YAHOO_LOGIN_LOCK )
    522522                        errstr = "Yahoo! account locked";
     523                else if( succ == 1236 )
     524                        errstr = "Yahoo! account locked or machine temporarily banned";
    523525                else if( succ == YAHOO_LOGIN_DUPL )
     526                        errstr = "Logged in on a different machine or device";
     527                else if( succ == YAHOO_LOGIN_SOCK )
    524528                {
    525                         errstr = "Logged in on a different machine or device";
    526                         allow_reconnect = FALSE;
     529                        errstr = "Socket problem";
     530                        allow_reconnect = TRUE;
    527531                }
    528                 else if( succ == YAHOO_LOGIN_SOCK )
    529                         errstr = "Socket problem";
    530532                else
    531533                        errstr = "Unknown error";
Note: See TracChangeset for help on using the changeset viewer.