diff 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
line wrap: on
line diff
--- a/src/aim.c	Fri Dec 22 03:14:27 2000 +0000
+++ b/src/aim.c	Fri Dec 22 03:55:47 2000 +0000
@@ -155,13 +155,8 @@
 	/* if there is more than one user of the same name, then fuck them, they just have
 	 * to use the account editor to sign in the second one */
 	u = find_user(username, -1);
-	if (!u) {
-		u = g_new0(struct aim_user, 1);
-		g_snprintf(u->username, sizeof(u->username), "%s", username);
-		u->protocol = PROTO_TOC;
-		u->options = OPT_USR_REM_PASS;
-		aim_users = g_list_append(aim_users, u);
-	}
+	if (!u)
+		u = new_user(username, PROTO_TOC, OPT_USR_REM_PASS);
 	g_snprintf(u->password, sizeof u->password, "%s", password);
 	save_prefs();
 	serv_login(u);