Changeset 96863f6 for account.c


Ignore:
Timestamp:
2006-07-02T09:49:31Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
911f2eb
Parents:
fef6116
Message:

Added protocol-specific settings, made the server setting specific to only
OSCAR and Jabber.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • account.c

    rfef6116 r96863f6  
    2828#include "account.h"
    2929
    30 char *set_eval_account( set_t *set, char *value );
    31 
    3230account_t *account_add( irc_t *irc, struct prpl *prpl, char *user, char *pass )
    3331{
     
    5149        a->irc = irc;
    5250       
    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 );
    5452        s->flags |= ACC_SET_NOSAVE;
    5553       
    5654        s = set_add( &a->set, "password", NULL, set_eval_account, a );
    5755        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;
    6156       
    6257        s = set_add( &a->set, "username", NULL, set_eval_account, a );
    6358        s->flags |= ACC_SET_NOSAVE | ACC_SET_OFFLINE_ONLY;
    6459        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 );
    6565       
    6666        return( a );
Note: See TracChangeset for help on using the changeset viewer.