Changeset 0d9d53e
- Timestamp:
- 2010-06-07T00:58:07Z (15 years ago)
- Branches:
- master
- Children:
- 4aa0f6b
- Parents:
- 36562b0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r36562b0 r0d9d53e 31 31 static gboolean irc_userping( gpointer _irc, gint fd, b_input_condition cond ); 32 32 static char *set_eval_charset( set_t *set, char *value ); 33 static char *set_eval_password( set_t *set, char *value ); 33 34 34 35 irc_t *irc_new( int fd ) … … 110 111 s = set_add( &b->set, "paste_buffer_delay", "200", set_eval_int, irc ); 111 112 s->old_key = g_strdup( "buddy_sendbuffer_delay" ); 113 s = set_add( &b->set, "password", NULL, set_eval_password, irc ); 114 s->flags |= SET_NULL_OK; 112 115 s = set_add( &b->set, "private", "true", set_eval_bool, irc ); 113 116 s = set_add( &b->set, "query_order", "lifo", NULL, irc ); … … 272 275 } else { 273 276 irc->password = NULL; 277 } 278 } 279 280 static char *set_eval_password( set_t *set, char *value ) 281 { 282 irc_t *irc = set->data; 283 284 if( irc->status & USTATUS_IDENTIFIED && value ) 285 { 286 irc_setpass( irc, value ); 287 return NULL; 288 } 289 else 290 { 291 return SET_INVALID; 274 292 } 275 293 } -
protocols/bee.c
r36562b0 r0d9d53e 38 38 s = set_add( &b->set, "auto_connect", "true", set_eval_bool, b ); 39 39 s = set_add( &b->set, "auto_reconnect", "true", set_eval_bool, b ); 40 s = set_add( &b->set, "auto_reconnect_delay", "5*3<900", NULL/*set_eval_account_reconnect_delay*/, b );40 s = set_add( &b->set, "auto_reconnect_delay", "5*3<900", set_eval_account_reconnect_delay, b ); 41 41 s = set_add( &b->set, "debug", "false", set_eval_bool, b ); 42 s = set_add( &b->set, "password", NULL, NULL/*set_eval_password*/, b );43 s->flags |= SET_NULL_OK;44 42 s = set_add( &b->set, "save_on_quit", "true", set_eval_bool, b ); 45 43 s = set_add( &b->set, "status", NULL, set_eval_away_status, b );
Note: See TracChangeset
for help on using the changeset viewer.