changeset 1171:11f8829f82fb

[gaim-migrate @ 1181] uhhm... committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 30 Nov 2000 02:07:06 +0000
parents 16d748023b2b
children 4135d8fc7b4e
files src/buddy.c src/dialogs.c
diffstat 2 files changed, 7 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Wed Nov 29 10:30:56 2000 +0000
+++ b/src/buddy.c	Thu Nov 30 02:07:06 2000 +0000
@@ -555,7 +555,6 @@
 		delb = (struct buddy *)delg->members->data;
 		remove_buddy(gc, delg, delb); /* this should take care of removing
 						 the group_show if necessary */
-                serv_remove_buddy(gc, delb->name);
 	}
 
 	gc->groups = g_slist_remove(gc->groups, delg);
--- a/src/dialogs.c	Wed Nov 29 10:30:56 2000 +0000
+++ b/src/dialogs.c	Thu Nov 30 02:07:06 2000 +0000
@@ -798,8 +798,13 @@
 
         c = find_conversation(who);
 
-	if (a->gc) add_buddy(a->gc, grp, who, whoalias);
-	else if (connections) add_buddy(connections->data, grp, who, whoalias);
+	if (a->gc) {
+		add_buddy(a->gc, grp, who, whoalias);
+		serv_add_buddy(a->gc, who);
+	} else if (connections) {
+		add_buddy(connections->data, grp, who, whoalias);
+		serv_add_buddy(connections->data, who);
+	}
 
         if (c != NULL) {
 		update_convo_add_button(c);
@@ -807,12 +812,6 @@
         
         build_edit_tree();
 
-	while (n) {
-		g = (struct gaim_connection *)n->data;
-		serv_add_buddy(g, who);
-		n = n->next;
-	}
-
 	do_export( (GtkWidget *) NULL, 0 );
 
         destroy_dialog(NULL, a->window);