Mercurial > pidgin
changeset 5517:e9b9fbf89c42
[gaim-migrate @ 5916]
So some (most?) AIM/ICQ accounts are sent a URL where you can change
your password. This URL contains a "%s" which is supposed to be
replaced with your screenname. Gaim actually replaces it with your
screen name now, so it's pre-filled in on the Enter-Your-Password form.
It uses that replace-substring-function that I just wrote for the
%s browser command thing.
Someone (maybe faceprint?) pointed out that Gaim didn't do this a while
ago.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 25 May 2003 19:47:13 +0000 |
parents | dcfe83cdfd42 |
children | bf2a7a7b739d |
files | src/protocols/oscar/oscar.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun May 25 19:31:09 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sun May 25 19:47:13 2003 +0000 @@ -5904,7 +5904,9 @@ static void oscar_show_chpassurl(struct gaim_connection *gc) { struct oscar_data *od = gc->proto_data; - open_url(NULL, od->sess->authinfo->chpassurl); + gchar *substituted = gaim_strreplace(od->sess->authinfo->chpassurl, "%s", gc->username); + open_url(NULL, substituted); + g_free(substituted); } static GList *oscar_actions(struct gaim_connection *gc)