Changeset c4a1036 for irc.c


Ignore:
Timestamp:
2008-06-09T01:52:28Z (16 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
12ebe74
Parents:
e46e077 (diff), 783e9b7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge integration branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    re46e077 rc4a1036  
    151151        set_add( &irc->set, "private", "true", set_eval_bool, irc );
    152152        set_add( &irc->set, "query_order", "lifo", NULL, irc );
     153        set_add( &irc->set, "root_nick", irc->mynick, set_eval_root_nick, irc );
    153154        set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc );
    154155        set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc );
     
    199200        if( irc->sendbuffer && !immed )
    200201        {
    201                 /* We won't read from this socket anymore. Instead, we'll connect a timer
    202                    to it that should shut down the connection in a second, just in case
    203                    bitlbee_.._write doesn't do it first. */
     202                /* Set up a timeout event that should shut down the connection
     203                   in a second, just in case ..._write doesn't do it first. */
    204204               
    205205                b_event_remove( irc->r_watch_source_id );
    206                 irc->r_watch_source_id = b_timeout_add( 1000, (b_event_handler) irc_free, irc );
     206                irc->r_watch_source_id = 0;
     207               
     208                b_event_remove( irc->ping_source_id );
     209                irc->ping_source_id = b_timeout_add( 1000, (b_event_handler) irc_free, irc );
    207210        }
    208211        else
     
    274277        if( irc->ping_source_id > 0 )
    275278                b_event_remove( irc->ping_source_id );
    276         b_event_remove( irc->r_watch_source_id );
     279        if( irc->r_watch_source_id > 0 )
     280                b_event_remove( irc->r_watch_source_id );
    277281        if( irc->w_watch_source_id > 0 )
    278282                b_event_remove( irc->w_watch_source_id );
Note: See TracChangeset for help on using the changeset viewer.