- Timestamp:
- 2006-07-02T09:49:31Z (18 years ago)
- Branches:
- master
- Children:
- 911f2eb
- Parents:
- fef6116
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
account.c
rfef6116 r96863f6 28 28 #include "account.h" 29 29 30 char *set_eval_account( set_t *set, char *value );31 32 30 account_t *account_add( irc_t *irc, struct prpl *prpl, char *user, char *pass ) 33 31 { … … 51 49 a->irc = irc; 52 50 53 s = set_add( &a->set, "auto_connect", NULL, set_eval_account, a );51 s = set_add( &a->set, "auto_connect", "true", set_eval_account, a ); 54 52 s->flags |= ACC_SET_NOSAVE; 55 53 56 54 s = set_add( &a->set, "password", NULL, set_eval_account, a ); 57 55 s->flags |= ACC_SET_NOSAVE; 58 59 s = set_add( &a->set, "server", NULL, set_eval_account, a );60 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;61 56 62 57 s = set_add( &a->set, "username", NULL, set_eval_account, a ); 63 58 s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY; 64 59 set_setstr( &a->set, "username", user ); 60 61 /* This function adds some more settings (and might want to do more 62 things that have to be done now, although I can't think of anything. */ 63 if( prpl->acc_init ) 64 prpl->acc_init( a ); 65 65 66 66 return( a );
Note: See TracChangeset
for help on using the changeset viewer.