- Timestamp:
- 2010-03-17T13:56:52Z (15 years ago)
- Branches:
- master
- Children:
- b788246
- Parents:
- e5e795d (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
re5e795d r75554d0 78 78 } 79 79 80 static char *set_eval_away_status( set_t *set, char *value ) 81 { 82 irc_t *irc = set->data; 83 account_t *a; 84 85 g_free( set->value ); 86 set->value = g_strdup( value ); 87 88 for( a = irc->accounts; a; a = a->next ) 89 { 90 struct im_connection *ic = a->ic; 91 92 if( ic && ic->flags & OPT_LOGGED_IN ) 93 imc_away_send_update( ic ); 94 } 95 96 return value; 97 } 98 80 99 irc_t *irc_new( int fd ) 81 100 { … … 143 162 irc_connection_list = g_slist_append( irc_connection_list, irc ); 144 163 164 s = set_add( &irc->set, "away", NULL, set_eval_away_status, irc ); 165 s->flags |= SET_NULL_OK; 145 166 s = set_add( &irc->set, "away_devoice", "true", set_eval_away_devoice, irc ); 146 167 s = set_add( &irc->set, "auto_connect", "true", set_eval_bool, irc ); 147 s = set_add( &irc->set, "auto_reconnect", " false", set_eval_bool, irc );168 s = set_add( &irc->set, "auto_reconnect", "true", set_eval_bool, irc ); 148 169 s = set_add( &irc->set, "auto_reconnect_delay", "5*3<900", set_eval_account_reconnect_delay, irc ); 149 170 s = set_add( &irc->set, "buddy_sendbuffer", "false", set_eval_bool, irc ); … … 163 184 s = set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc ); 164 185 s = set_add( &irc->set, "simulate_netsplit", "true", set_eval_bool, irc ); 186 s = set_add( &irc->set, "status", NULL, set_eval_away_status, irc ); 187 s->flags |= SET_NULL_OK; 165 188 s = set_add( &irc->set, "strip_html", "true", NULL, irc ); 166 189 s = set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc );
Note: See TracChangeset
for help on using the changeset viewer.