changeset 2042:d5033540df18

[gaim-migrate @ 2052] i finally made up my mind about this. if you're specifying --login then it shouldn't reorder them, because you might not want them to be in a different order. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 16 Jun 2001 19:53:23 +0000
parents 241ffe9ee605
children 1b8f4b90bf09
files src/util.c
diffstat 1 files changed, 1 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Sat Jun 16 19:37:17 2001 +0000
+++ b/src/util.c	Sat Jun 16 19:53:23 2001 +0000
@@ -1179,25 +1179,6 @@
 }
 
 
-void set_first_user(char *name)
-{
-	struct aim_user *u;
-
-	u = find_user(name, -1);
-
-	if (!u) {		/* new user */
-		u = g_new0(struct aim_user, 1);
-		g_snprintf(u->username, sizeof(u->username), "%s", name);
-		u->protocol = DEFAULT_PROTO;
-		aim_users = g_list_prepend(aim_users, u);
-	} else {		/* user already exists */
-		aim_users = g_list_remove(aim_users, u);
-		aim_users = g_list_prepend(aim_users, u);
-	}
-	save_prefs();
-}
-
-
 /* <name> is a comma-separated list of names, or NULL
    if NULL and there is at least one user defined in .gaimrc, try to login.
    if not NULL, parse <name> into separate strings, look up each one in 
@@ -1208,7 +1189,7 @@
 int do_auto_login(char *name)
 {
 	struct aim_user *u;
-	char **names, **n, *first = NULL;
+	char **names, **n;
 	int retval = -1;
 
 	if (name !=NULL) {	/* list of names given */
@@ -1216,19 +1197,13 @@
 		for (n = names; *n != NULL; n++) {
 			u = find_user(*n, -1);
 			if (u) {	/* found a user */
-				if (first == NULL)
-					first = g_strdup(*n);
 				if (u->options & OPT_USR_REM_PASS) {
 					retval = 0;
 					serv_login(u);
 				}
 			}
 		}
-		/* make the first user listed the default */
-		if (first != NULL)
-			set_first_user(first);
 		g_strfreev(names);
-		g_free(first);
 	} else {		/* no name given, use default */
 		u = (struct aim_user *)aim_users->data;
 		if (u->options & OPT_USR_REM_PASS) {