Mercurial > pidgin
diff src/protocols/gg/gg.c @ 10740:94cc67130789
[gaim-migrate @ 12342]
More big changes, yay.
I combined gaim_connection_new and gaim_connection_connect. Earlier
today I realized that it's dumb to have a GaimConnection that isn't
connected.
I'm about to combine gaim_connection_disconnect and
gaim_connection_destroy, as well.
I added a "password" field to GaimConnection.
It holds the password used to login a specific GaimConnection. Now,
when "remember password" is false, account->password is NEVER set.
When the user tries to sign on and Gaim prompts for the password,
it goes directly into the GaimConnection.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 26 Mar 2005 23:25:18 +0000 |
parents | c4cb90065e1d |
children | bf5e48215158 |
line wrap: on
line diff
--- a/src/protocols/gg/gg.c Sat Mar 26 21:22:53 2005 +0000 +++ b/src/protocols/gg/gg.c Sat Mar 26 23:25:18 2005 +0000 @@ -1,6 +1,6 @@ /* * gaim - Gadu-Gadu Protocol Plugin - * $Id: gg.c 12334 2005-03-26 02:43:49Z lschiere $ + * $Id: gg.c 12342 2005-03-26 23:25:18Z thekingant $ * * Copyright (C) 2001 Arkadiusz Mi¶kiewicz <misiek@pld.ORG.PL> * @@ -27,6 +27,7 @@ #include "account.h" #include "accountopt.h" #include "blist.h" +#include "connection.h" #include "debug.h" #include "notify.h" #include "proxy.h" @@ -1353,7 +1354,7 @@ { struct agg_http *hi = g_new0(struct agg_http, 1); gchar *u = gg_urlencode(gaim_account_get_username(gc->account)); - gchar *p = gg_urlencode(gaim_account_get_password(gc->account)); + gchar *p = gg_urlencode(gaim_connection_get_password(gc)); hi->gc = gc; hi->type = AGG_HTTP_USERLIST_IMPORT; @@ -1380,7 +1381,7 @@ struct agg_http *he = g_new0(struct agg_http, 1); gchar *ptr; gchar *u = gg_urlencode(gaim_account_get_username(gc->account)); - gchar *p = gg_urlencode(gaim_account_get_password(gc->account)); + gchar *p = gg_urlencode(gaim_connection_get_password(gc)); GaimBlistNode *gnode, *cnode, *bnode; @@ -1453,7 +1454,7 @@ { struct agg_http *he = g_new0(struct agg_http, 1); gchar *u = gg_urlencode(gaim_account_get_username(gc->account)); - gchar *p = gg_urlencode(gaim_account_get_password(gc->account)); + gchar *p = gg_urlencode(gaim_connection_get_password(gc)); he->gc = gc; he->type = AGG_HTTP_USERLIST_DELETE; @@ -1529,7 +1530,7 @@ { struct agg_http *hpass = g_new0(struct agg_http, 1); gchar *u = gg_urlencode(gaim_account_get_username(gc->account)); - gchar *p = gg_urlencode(gaim_account_get_password(gc->account)); + gchar *p = gg_urlencode(gaim_connection_get_password(gc)); gchar *enew = gg_urlencode(new); gchar *eold = gg_urlencode(old);