aboutsummaryrefslogtreecommitdiffstats
path: root/account.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-07-01 01:18:56 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-07-01 01:18:56 +0200
commit0a3c243b6659dc10efb227e507f324c2711d6dcd (patch)
treebdeca88ab17879014a2b51a031546cf19ca6a36c /account.c
parent5c9512ffa716f2bc8bbf9e2c31ee40624a0ff842 (diff)
Got rid of struct aim_user (now using account_t everywhere). Needs some more
testing though.
Diffstat (limited to 'account.c')
-rw-r--r--account.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/account.c b/account.c
index b75afa51..ced62e25 100644
--- a/account.c
+++ b/account.c
@@ -142,8 +142,6 @@ void account_del( irc_t *irc, account_t *acc )
void account_on( irc_t *irc, account_t *a )
{
- struct aim_user *u;
-
if( a->gc )
{
/* Trying to enable an already-enabled account */
@@ -152,17 +150,8 @@ void account_on( irc_t *irc, account_t *a )
cancel_auto_reconnect( a );
- u = g_new0 ( struct aim_user, 1 );
- u->irc = irc;
- u->prpl = a->prpl;
- strncpy( u->username, a->user, sizeof( u->username ) - 1 );
- strncpy( u->password, a->pass, sizeof( u->password ) - 1 );
- if( a->server) strncpy( u->proto_opt[0], a->server, sizeof( u->proto_opt[0] ) - 1 );
-
- a->gc = (struct gaim_connection *) u; /* Bit hackish :-/ */
a->reconnect = 0;
-
- a->prpl->login( u );
+ a->prpl->login( a );
}
void account_off( irc_t *irc, account_t *a )