Changeset 4230221 for protocols/nogaim.c


Ignore:
Timestamp:
2008-08-09T23:00:38Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a830512
Parents:
280e655
Message:

Added ceiling to auto-reconnect delay, changed the default to 5*3<900 and
added documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r280e655 r4230221  
    294294        user_t *t, *u;
    295295        account_t *a;
     296        int delay;
    296297       
    297298        /* Nested calls might happen sometimes, this is probably the best
     
    333334        }
    334335        else if( allow_reconnect && set_getbool( &irc->set, "auto_reconnect" ) &&
    335                  set_getbool( &a->set, "auto_reconnect" ) )
    336         {
    337                 int delay = account_reconnect_delay( a );
    338                
     336                 set_getbool( &a->set, "auto_reconnect" ) &&
     337                 ( delay = account_reconnect_delay( a ) ) > 0 )
     338        {
    339339                imcb_log( ic, "Reconnecting in %d seconds..", delay );
    340340                a->reconnect = b_timeout_add( delay * 1000, auto_reconnect, a );
Note: See TracChangeset for help on using the changeset viewer.