diff src/blist.c @ 11643:eb14bbcf7249

[gaim-migrate @ 13920] sf patch #1293063, from John Bailey Move and rename some functions from server.c to the account API. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 12 Oct 2005 02:47:31 +0000
parents 45d54425dc65
children ec7c3da0e718
line wrap: on
line diff
--- a/src/blist.c	Wed Oct 12 02:27:32 2005 +0000
+++ b/src/blist.c	Wed Oct 12 02:47:31 2005 +0000
@@ -1039,9 +1039,9 @@
 					groups = g_list_append(groups, node->parent->parent);
 				}
 
-				serv_remove_buddies(account->gc, buddies, groups);
+				gaim_account_remove_buddies(account, buddies, groups);
 				g_list_free(groups);
-				serv_add_buddies(account->gc, buddies);
+				gaim_account_add_buddies(account, buddies);
 			}
 
 			g_list_free(buddies);
@@ -1520,7 +1520,7 @@
 					g_free(hb->name);
 					g_free(hb);
 					if (b->account->gc)
-						serv_remove_buddy(b->account->gc, b, (GaimGroup *)cnode->parent);
+						gaim_account_remove_buddy(b->account, b, (GaimGroup *)cnode->parent);
 
 					if (!cnode->child->next)
 						empty_contact = TRUE;
@@ -1894,7 +1894,7 @@
 		GaimConnection *gc = (GaimConnection *)l->data;
 
 		if (gaim_connection_get_state(gc) == GAIM_CONNECTED)
-			serv_remove_group(gc, group);
+			gaim_account_remove_group(gaim_connection_get_account(gc), group);
 	}
 
 	/* Delete the node */