gaim/gaim

Parents 8706427fde57
Children 01a8946c65fe
Fix moving all buddies from one group to anotherr. KingAnt can you look at the XXX note that I added
--- a/src/protocols/oscar/oscar.c Fri Jun 10 00:11:01 2005 -0400
+++ b/src/protocols/oscar/oscar.c Sat Jun 11 18:19:06 2005 -0400
@@ -5872,12 +5872,16 @@
/* Make a list of what the groups each buddy is in */
for (cur = moved_buddies; cur != NULL; cur = cur->next) {
GaimBlistNode *node = cur->data;
- groups = g_list_append(groups, node->parent);
+ /* node is GaimBuddy, parent is a GaimContact.
+ * We must go two levels up to get the Group */
+ groups = g_list_append(groups,
+ node->parent->parent);
}
oscar_remove_buddies(gc, moved_buddies, groups);
oscar_add_buddies(gc, moved_buddies, groups);
g_list_free(groups);
+ /** XXX: Shouldn't be we deleting the old group on the server here??? */
gaim_debug_info("oscar",
"ssi: moved all buddies from group %s to %s\n", old_name, group->name);
} else {