Mercurial > pidgin
diff src/protocols/napster/napster.c @ 4491:3196d9044a45
[gaim-migrate @ 4766]
aim_user is dead. long live gaim_account.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Fri, 31 Jan 2003 13:03:47 +0000 |
parents | 23af9ba33ca4 |
children | 5fcb44d771d2 |
line wrap: on
line diff
--- a/src/protocols/napster/napster.c Fri Jan 31 06:51:49 2003 +0000 +++ b/src/protocols/napster/napster.c Fri Jan 31 13:03:47 2003 +0000 @@ -437,14 +437,16 @@ } -static void nap_login(struct aim_user *user) +static void nap_login(struct gaim_account *account) { - struct gaim_connection *gc = new_gaim_conn(user); + struct gaim_connection *gc = new_gaim_conn(account); gc->proto_data = g_new0(struct nap_data, 1); - if (proxy_connect(user->proto_opt[USEROPT_NAPSERVER][0] ? user->proto_opt[USEROPT_NAPSERVER] : NAP_SERVER, - user->proto_opt[USEROPT_NAPPORT][0] ? atoi(user->proto_opt[USEROPT_NAPPORT]) : NAP_PORT, - nap_login_connect, gc) != 0) { + if (proxy_connect(account->proto_opt[USEROPT_NAPSERVER][0] ? + account->proto_opt[USEROPT_NAPSERVER] : NAP_SERVER, + account->proto_opt[USEROPT_NAPPORT][0] ? + atoi(account->proto_opt[USEROPT_NAPPORT]) : NAP_PORT, + nap_login_connect, gc) != 0) { hide_login_progress(gc, "Unable to connect"); signoff(gc); }