Mercurial > pidgin
comparison src/server.c @ 4440:d9e4eacf6b46
[gaim-migrate @ 4715]
this was bad. glad i noticed it.
committer: Tailor Script <tailor@pidgin.im>
| author | Nathan Walp <nwalp@pidgin.im> |
|---|---|
| date | Tue, 28 Jan 2003 05:39:29 +0000 |
| parents | 8067614e49e4 |
| children | 62c1e5e656d0 |
comparison
equal
deleted
inserted
replaced
| 4439:7693d84255e7 | 4440:d9e4eacf6b46 |
|---|---|
| 386 { | 386 { |
| 387 if (g && g->prpl && old_group && new_name) { | 387 if (g && g->prpl && old_group && new_name) { |
| 388 GList *tobemoved = NULL; | 388 GList *tobemoved = NULL; |
| 389 GSList *original; | 389 GSList *original; |
| 390 | 390 |
| 391 for (original=old_group->members; original; original=g_slist_next(original)) | 391 for (original=old_group->members; original; original=g_slist_next(original)) { |
| 392 tobemoved = g_list_append(tobemoved, ((struct buddy *)original->data)->name); | 392 struct buddy *b = original->data; |
| 393 if(b->user == g->user) | |
| 394 tobemoved = g_list_append(tobemoved, b->name); | |
| 395 } | |
| 393 | 396 |
| 394 if (g->prpl->rename_group) { | 397 if (g->prpl->rename_group) { |
| 395 /* prpl's might need to check if the group already | 398 /* prpl's might need to check if the group already |
| 396 * exists or not, and handle that differently */ | 399 * exists or not, and handle that differently */ |
| 397 g->prpl->rename_group(g, old_group->name, new_name, tobemoved); | 400 g->prpl->rename_group(g, old_group->name, new_name, tobemoved); |
