comparison src/server.c @ 2681:37d80035e77f

[gaim-migrate @ 2694] don't ask. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 06 Nov 2001 23:58:24 +0000
parents b0c5770156e1
children e841b14b5b89
comparison
equal deleted inserted replaced
2680:ab2ca2770d2e 2681:37d80035e77f
248 } 248 }
249 } 249 }
250 } 250 }
251 251
252 252
253 void serv_remove_buddy(struct gaim_connection *g, char *name) 253 void serv_remove_buddy(struct gaim_connection *g, char *name, char *group)
254 { 254 {
255 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->remove_buddy) 255 if (g && g_slist_find(connections, g) && g->prpl && g->prpl->remove_buddy)
256 g->prpl->remove_buddy(g, name); 256 g->prpl->remove_buddy(g, name, group);
257 } 257 }
258 258
259 void serv_remove_buddies(struct gaim_connection *gc, GList *g) 259 void serv_remove_buddies(struct gaim_connection *gc, GList *g, char *group)
260 { 260 {
261 if (!g_slist_find(connections, gc)) 261 if (!g_slist_find(connections, gc))
262 return; 262 return;
263 if (!gc->prpl) 263 if (!gc->prpl)
264 return; /* how the hell did that happen? */ 264 return; /* how the hell did that happen? */
265 if (gc->prpl->remove_buddies) 265 if (gc->prpl->remove_buddies)
266 gc->prpl->remove_buddies(gc, g); 266 gc->prpl->remove_buddies(gc, g, group);
267 else { 267 else {
268 while (g) { 268 while (g) {
269 serv_remove_buddy(gc, g->data); 269 serv_remove_buddy(gc, g->data, group);
270 g = g->next; 270 g = g->next;
271 } 271 }
272 } 272 }
273 } 273 }
274 274