- Timestamp:
- 2010-06-07T15:21:21Z (14 years ago)
- Branches:
- master
- Children:
- c5aefa4
- Parents:
- 56699f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r56699f0 r0e8b3e8 100 100 b->ui = &irc_ui_funcs; 101 101 102 s = set_add( &b->set, "away_devoice", "true", NULL/*set_eval_away_devoice*/, irc );102 s = set_add( &b->set, "away_devoice", "true", set_eval_away_devoice, irc ); 103 103 s = set_add( &b->set, "charset", "utf-8", set_eval_charset, irc ); 104 104 s = set_add( &b->set, "default_target", "root", NULL, irc ); … … 819 819 return value; 820 820 } 821 822 char *set_eval_away_devoice( set_t *set, char *value ) 823 { 824 irc_t *irc = set->data; 825 826 if( !is_bool( value ) ) 827 return SET_INVALID; 828 829 /* The usual problem: The setting isn't actually changed at this 830 point and we need it to be, so do it by hand. */ 831 g_free( set->value ); 832 set->value = g_strdup( value ); 833 834 bee_irc_channel_update( irc, NULL, NULL ); 835 836 return value; 837 }
Note: See TracChangeset
for help on using the changeset viewer.