Mercurial > pidgin.yaz
diff src/aim.c @ 2379:cacaf7ace3a5
[gaim-migrate @ 2392]
reorganization of some functions.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Fri, 28 Sep 2001 01:25:02 +0000 |
parents | 2927c2c26fe6 |
children | 520257562955 |
line wrap: on
line diff
--- a/src/aim.c Thu Sep 27 23:58:48 2001 +0000 +++ b/src/aim.c Fri Sep 28 01:25:02 2001 +0000 @@ -413,6 +413,23 @@ } #endif +static 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(); +} int main(int argc, char *argv[]) {