diff src/server.c @ 4969:21cfdb9af2eb

[gaim-migrate @ 5303] This fixes the renaming of groups on the sever-side. Thanks to The Nathan Walp for pointing it out. Thanks to The Sean for making a totally sweet buddy list. Thanks to Ethan for just being totally sweet in general. And thanks to Alf for trying to hard to eat cats. I also took out an unused function from oscar.c committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 03 Apr 2003 04:30:05 +0000
parents cb5bb2972a4b
children 088566495617
line wrap: on
line diff
--- a/src/server.c	Thu Apr 03 04:23:30 2003 +0000
+++ b/src/server.c	Thu Apr 03 04:30:05 2003 +0000
@@ -391,13 +391,14 @@
 {
 	if (g && g->prpl && old_group && new_name) {
 		GList *tobemoved = NULL;
-		GSList *original;
+		GaimBlistNode *b = ((GaimBlistNode*)old_group)->child;
 
-		/*		for (original=old_group->members; original; original=g_slist_next(original)) {
-			struct buddy *b = original->data;
-			if(b->account == g->account)
-				tobemoved = g_list_append(tobemoved, b->name);
-				} */
+		while (b) {
+			struct buddy *bd = (struct buddy *)b;
+			if (bd->account = g->account)
+				tobemoved = g_list_append(tobemoved, bd->name);
+			b = b->next;
+		}
 
 		if (g->prpl->rename_group) {
 			/* prpl's might need to check if the group already