diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-01 01:18:56 +0200 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2006-07-01 01:18:56 +0200 | 
| commit | 0a3c243b6659dc10efb227e507f324c2711d6dcd (patch) | |
| tree | bdeca88ab17879014a2b51a031546cf19ca6a36c /account.c | |
| parent | 5c9512ffa716f2bc8bbf9e2c31ee40624a0ff842 (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.c | 13 | 
1 files changed, 1 insertions, 12 deletions
| @@ -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 ) | 
