Mercurial > pidgin
comparison src/protocols/oscar/oscar.c @ 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 | cce2d7868c78 |
children | 3becf79500d2 |
comparison
equal
deleted
inserted
replaced
5516:dcfe83cdfd42 | 5517:e9b9fbf89c42 |
---|---|
5902 } | 5902 } |
5903 | 5903 |
5904 static void oscar_show_chpassurl(struct gaim_connection *gc) | 5904 static void oscar_show_chpassurl(struct gaim_connection *gc) |
5905 { | 5905 { |
5906 struct oscar_data *od = gc->proto_data; | 5906 struct oscar_data *od = gc->proto_data; |
5907 open_url(NULL, od->sess->authinfo->chpassurl); | 5907 gchar *substituted = gaim_strreplace(od->sess->authinfo->chpassurl, "%s", gc->username); |
5908 open_url(NULL, substituted); | |
5909 g_free(substituted); | |
5908 } | 5910 } |
5909 | 5911 |
5910 static GList *oscar_actions(struct gaim_connection *gc) | 5912 static GList *oscar_actions(struct gaim_connection *gc) |
5911 { | 5913 { |
5912 struct oscar_data *od = gc->proto_data; | 5914 struct oscar_data *od = gc->proto_data; |