Mercurial > pidgin.yaz
comparison src/aim.c @ 1355:04874e92af24
[gaim-migrate @ 1365]
better handling of new user for probably use in reg dialog.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 22 Dec 2000 03:55:47 +0000 |
parents | b332d8f46b84 |
children | ed8b24a73764 |
comparison
equal
deleted
inserted
replaced
1354:6b0a7cea1dd1 | 1355:04874e92af24 |
---|---|
153 } | 153 } |
154 | 154 |
155 /* if there is more than one user of the same name, then fuck them, they just have | 155 /* if there is more than one user of the same name, then fuck them, they just have |
156 * to use the account editor to sign in the second one */ | 156 * to use the account editor to sign in the second one */ |
157 u = find_user(username, -1); | 157 u = find_user(username, -1); |
158 if (!u) { | 158 if (!u) |
159 u = g_new0(struct aim_user, 1); | 159 u = new_user(username, PROTO_TOC, OPT_USR_REM_PASS); |
160 g_snprintf(u->username, sizeof(u->username), "%s", username); | |
161 u->protocol = PROTO_TOC; | |
162 u->options = OPT_USR_REM_PASS; | |
163 aim_users = g_list_append(aim_users, u); | |
164 } | |
165 g_snprintf(u->password, sizeof u->password, "%s", password); | 160 g_snprintf(u->password, sizeof u->password, "%s", password); |
166 save_prefs(); | 161 save_prefs(); |
167 serv_login(u); | 162 serv_login(u); |
168 } | 163 } |
169 | 164 |