Changeset e8c8d00 for irc.c


Ignore:
Timestamp:
2010-03-17T15:15:19Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
60e4df3
Parents:
1c3008a (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:

Merging mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r1c3008a re8c8d00  
    7979}
    8080
     81static char *set_eval_away_status( set_t *set, char *value )
     82{
     83        irc_t *irc = set->data;
     84        account_t *a;
     85       
     86        g_free( set->value );
     87        set->value = g_strdup( value );
     88       
     89        for( a = irc->accounts; a; a = a->next )
     90        {
     91                struct im_connection *ic = a->ic;
     92               
     93                if( ic && ic->flags & OPT_LOGGED_IN )
     94                        imc_away_send_update( ic );
     95        }
     96       
     97        return value;
     98}
     99
    81100irc_t *irc_new( int fd )
    82101{
     
    144163        irc_connection_list = g_slist_append( irc_connection_list, irc );
    145164       
     165        s = set_add( &irc->set, "away", NULL,  set_eval_away_status, irc );
     166        s->flags |= SET_NULL_OK;
    146167        s = set_add( &irc->set, "away_devoice", "true",  set_eval_away_devoice, irc );
    147168        s = set_add( &irc->set, "auto_connect", "true", set_eval_bool, irc );
    148         s = set_add( &irc->set, "auto_reconnect", "false", set_eval_bool, irc );
     169        s = set_add( &irc->set, "auto_reconnect", "true", set_eval_bool, irc );
    149170        s = set_add( &irc->set, "auto_reconnect_delay", "5*3<900", set_eval_account_reconnect_delay, irc );
    150171        s = set_add( &irc->set, "buddy_sendbuffer", "false", set_eval_bool, irc );
     
    164185        s = set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc );
    165186        s = set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc );
     187        s = set_add( &irc->set, "status", NULL,  set_eval_away_status, irc );
     188        s->flags |= SET_NULL_OK;
    166189        s = set_add( &irc->set, "strip_html", "true", NULL, irc );
    167190        s = set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc );
Note: See TracChangeset for help on using the changeset viewer.