Mercurial > pidgin
diff src/aim.c @ 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 | 09dd5725945c |
| children | 56cff2fba28c |
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();
