Mercurial > pidgin
comparison src/util.c @ 1878:75643b9f4261
[gaim-migrate @ 1888]
eh.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 22 May 2001 09:05:21 +0000 |
parents | 8f06476b1296 |
children | 5bed3bc833b5 |
comparison
equal
deleted
inserted
replaced
1877:a333eccaae93 | 1878:75643b9f4261 |
---|---|
1181 u = find_user(name, -1); | 1181 u = find_user(name, -1); |
1182 | 1182 |
1183 if (!u) { /* new user */ | 1183 if (!u) { /* new user */ |
1184 u = g_new0(struct aim_user, 1); | 1184 u = g_new0(struct aim_user, 1); |
1185 g_snprintf(u->username, sizeof(u->username), "%s", name); | 1185 g_snprintf(u->username, sizeof(u->username), "%s", name); |
1186 u->protocol = 0 /* PROTO_TOC */ ; | 1186 u->protocol = DEFAULT_PROTO; |
1187 aim_users = g_list_prepend(aim_users, u); | 1187 aim_users = g_list_prepend(aim_users, u); |
1188 } else { /* user already exists */ | 1188 } else { /* user already exists */ |
1189 aim_users = g_list_remove(aim_users, u); | 1189 aim_users = g_list_remove(aim_users, u); |
1190 aim_users = g_list_prepend(aim_users, u); | 1190 aim_users = g_list_prepend(aim_users, u); |
1191 } | 1191 } |