comparison plugins/yay/yay.c @ 1300:59f08eb64017

[gaim-migrate @ 1310] patch from kylev (nice to see you back), and add_buddies. should help things work better. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 19 Dec 2000 01:16:46 +0000
parents 38f8096975ef
children 4c5c2fcb83cd
comparison
equal deleted inserted replaced
1299:18c3874ea051 1300:59f08eb64017
340 340
341 if (group) 341 if (group)
342 yahoo_add_buddy(yd->ctxt, name, gc->username, group, ""); 342 yahoo_add_buddy(yd->ctxt, name, gc->username, group, "");
343 } 343 }
344 344
345 static void yahoo_add_buddies(struct gaim_connection *gc, GList *buddies) {
346 while (buddies) {
347 gyahoo_add_buddy(gc, buddies->data);
348 buddies = buddies->next;
349 }
350 }
351
352 static void gyahoo_remove_buddy(struct gaim_connection *gc, char *name) {
353 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
354 struct yahoo_buddy *tmpbuddy;
355 struct group *g = find_group_by_buddy(gc, name);
356 char *group = NULL;
357
358 if (g) {
359 group = g->name;
360 } else if (yd->ctxt && yd->ctxt->buddies[0]) {
361 tmpbuddy = yd->ctxt->buddies[0];
362 group = tmpbuddy->group;
363 }
364
365 if (group)
366 yahoo_remove_buddy(yd->ctxt, name, gc->username, group, "");
367 }
368
345 static char **yahoo_list_icon(int uc) { 369 static char **yahoo_list_icon(int uc) {
346 if ((uc >> 5) == YAHOO_STATUS_IDLE) 370 if ((uc >> 5) == YAHOO_STATUS_IDLE)
347 return status_idle_xpm; 371 return status_idle_xpm;
348 else if (uc == UC_NORMAL) 372 else if (uc == UC_NORMAL)
349 return status_here_xpm; 373 return status_here_xpm;
388 ret->get_dir = NULL; 412 ret->get_dir = NULL;
389 ret->dir_search = NULL; 413 ret->dir_search = NULL;
390 ret->set_idle = yahoo_set_idle; 414 ret->set_idle = yahoo_set_idle;
391 ret->change_passwd = NULL; 415 ret->change_passwd = NULL;
392 ret->add_buddy = gyahoo_add_buddy; 416 ret->add_buddy = gyahoo_add_buddy;
393 ret->add_buddies = NULL; 417 ret->add_buddies = yahoo_add_buddies;
394 ret->remove_buddy = NULL; 418 ret->remove_buddy = gyahoo_remove_buddy;
395 ret->add_permit = NULL; 419 ret->add_permit = NULL;
396 ret->add_deny = NULL; 420 ret->add_deny = NULL;
397 ret->rem_permit = NULL; 421 ret->rem_permit = NULL;
398 ret->rem_deny = NULL; 422 ret->rem_deny = NULL;
399 ret->set_permit_deny = NULL; 423 ret->set_permit_deny = NULL;