Mercurial > pidgin.yaz
changeset 994:fc1ca0d9c878
[gaim-migrate @ 1004]
add a new user at the login prompt
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 14 Oct 2000 20:31:22 +0000 |
parents | eacd93d0089a |
children | baad64740daa |
files | src/aim.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aim.c Fri Oct 13 22:32:20 2000 +0000 +++ b/src/aim.c Sat Oct 14 20:31:22 2000 +0000 @@ -165,7 +165,12 @@ u = find_user(username); if (!u) { - /* FIXME : add user */ + u = g_new0(struct aim_user, 1); + g_snprintf(u->username, sizeof(u->username), "%s", username); + g_snprintf(u->password, sizeof(u->password), "%s", password); + u->protocol = PROTO_TOC; + u->options = OPT_USR_REM_PASS; + aim_users = g_list_append(aim_users, u); } g_snprintf(u->password, sizeof u->password, "%s", password); save_prefs();