# HG changeset patch # User Eric Warmenhoven # Date 992721203 0 # Node ID d5033540df182279295f7c12f6cb7d14eb874653 # Parent 241ffe9ee605f0ca6c9d9c2059d5629e23564836 [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 diff -r 241ffe9ee605 -r d5033540df18 src/util.c --- 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(); -} - - /* 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 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) {