Changeset 0a3c243 for account.c


Ignore:
Timestamp:
2006-06-30T23:18:56Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
5100caa
Parents:
5c9512f
Message:

Got rid of struct aim_user (now using account_t everywhere). Needs some more
testing though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • account.c

    r5c9512f r0a3c243  
    143143void account_on( irc_t *irc, account_t *a )
    144144{
    145         struct aim_user *u;
    146        
    147145        if( a->gc )
    148146        {
     
    153151        cancel_auto_reconnect( a );
    154152       
    155         u = g_new0 ( struct aim_user, 1 );
    156         u->irc = irc;
    157         u->prpl = a->prpl;
    158         strncpy( u->username, a->user, sizeof( u->username ) - 1 );
    159         strncpy( u->password, a->pass, sizeof( u->password ) - 1 );
    160         if( a->server) strncpy( u->proto_opt[0], a->server, sizeof( u->proto_opt[0] ) - 1 );
    161        
    162         a->gc = (struct gaim_connection *) u; /* Bit hackish :-/ */
    163153        a->reconnect = 0;
    164        
    165         a->prpl->login( u );
     154        a->prpl->login( a );
    166155}
    167156
Note: See TracChangeset for help on using the changeset viewer.