Changes in irc.c [58adb7e:e1720ce]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r58adb7e re1720ce 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 99 80 irc_t *irc_new( int fd ) 100 81 { … … 162 143 irc_connection_list = g_slist_append( irc_connection_list, irc ); 163 144 164 s = set_add( &irc->set, "away", NULL, set_eval_away_status, irc );165 s->flags |= SET_NULL_OK;166 145 s = set_add( &irc->set, "away_devoice", "true", set_eval_away_devoice, irc ); 167 146 s = set_add( &irc->set, "auto_connect", "true", set_eval_bool, irc ); … … 184 163 s = set_add( &irc->set, "save_on_quit", "true", set_eval_bool, irc ); 185 164 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;188 165 s = set_add( &irc->set, "strip_html", "true", NULL, irc ); 189 166 s = set_add( &irc->set, "to_char", ": ", set_eval_to_char, irc );
Note: See TracChangeset
for help on using the changeset viewer.