libpurple/protocols/novell/novell.c

branch
cpw.darkrain42.buddy-add
changeset 26091
83f52ce0929f
parent 25911
f22097dc8413
parent 25806
2c8f7b384a71
child 26539
e7456a9c2b64
equal deleted inserted replaced
26071:b4bbfacd7f20 26091:83f52ce0929f
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

mercurial