Changeset 5f8ab6a9 for irc.c


Ignore:
Timestamp:
2010-06-03T10:41:03Z (14 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
Branches:
master
Children:
814aa52
Parents:
3f81999 (diff), f9928cb (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 in bitlbee 1.2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r3f81999 r5f8ab6a9  
    8181}
    8282
     83static char *set_eval_away_status( set_t *set, char *value )
     84{
     85        irc_t *irc = set->data;
     86        account_t *a;
     87       
     88        g_free( set->value );
     89        set->value = g_strdup( value );
     90       
     91        for( a = irc->accounts; a; a = a->next )
     92        {
     93                struct im_connection *ic = a->ic;
     94               
     95                if( ic && ic->flags & OPT_LOGGED_IN )
     96                        imc_away_send_update( ic );
     97        }
     98       
     99        return value;
     100}
     101
    83102irc_t *irc_new( int fd )
    84103{
     
    147166
    148167       
     168        s = set_add( &irc->set, "away", NULL,  set_eval_away_status, irc );
     169        s->flags |= SET_NULL_OK;
    149170        s = set_add( &irc->set, "auto_connect", "true", set_eval_bool, irc );
    150         s = set_add( &irc->set, "auto_reconnect", "false", set_eval_bool, irc );
     171        s = set_add( &irc->set, "auto_reconnect", "true", set_eval_bool, irc );
    151172        s = set_add( &irc->set, "auto_reconnect_delay", "5*3<900", set_eval_account_reconnect_delay, irc );
    152173        s = set_add( &irc->set, "buddy_sendbuffer", "false", set_eval_bool, irc );
Note: See TracChangeset for help on using the changeset viewer.