| 2553 |
2553 |
| 2554 /* If we haven't synched the contact list yet, ignore |
2554 /* If we haven't synched the contact list yet, ignore |
| 2555 * the add_buddy calls. Server side list is the master. |
2555 * the add_buddy calls. Server side list is the master. |
| 2556 */ |
2556 */ |
| 2557 if (!user->clist_synched) |
2557 if (!user->clist_synched) |
| |
2558 return; |
| |
2559 |
| |
2560 /* Don't re-add a buddy that is already on our contact list */ |
| |
2561 if (nm_find_user_record(user, buddy->name) != NULL) |
| 2558 return; |
2562 return; |
| 2559 |
2563 |
| 2560 contact = nm_create_contact(); |
2564 contact = nm_create_contact(); |
| 2561 nm_contact_set_dn(contact, purple_buddy_get_name(buddy)); |
2565 nm_contact_set_dn(contact, purple_buddy_get_name(buddy)); |
| 2562 |
2566 |