# HG changeset patch # User Nathan Walp # Date 1070206815 0 # Node ID b8a6aec3d23e677fbe294d78202c4bb5efb4c277 # Parent 5076246a211bba984a2fe8126d33b2e8d87873a5 [gaim-migrate @ 8315] Christian, this wasn't implemented on purpose. Contacts are not to be found. If you're trying to find them, you're doing something wrong. Very wrong. They are nameless and faceless (but not aliasless, by popular demand) entities but they're not to be taken seriously. Also, there can be 50 contacts that would all be equally valid to return searching for a given name in a group, hence the (continued) non-existence of this function. Sorry :-/ foot.down(); committer: Tailor Script diff -r 5076246a211b -r b8a6aec3d23e src/blist.c --- a/src/blist.c Sun Nov 30 08:22:17 2003 +0000 +++ b/src/blist.c Sun Nov 30 15:40:15 2003 +0000 @@ -1305,38 +1305,6 @@ return NULL; } -GaimContact * -gaim_find_contact(GaimGroup *group, const char *name) -{ - GaimBlistNode *node; - - g_return_val_if_fail(gaim_get_blist() != NULL, NULL); - g_return_val_if_fail(name != NULL, NULL); - - for (node = ((GaimBlistNode *)group)->child; - node != NULL; - node = node->next) - { - GaimContact *contact; - GaimBuddy *buddy; - - if (!GAIM_BLIST_NODE_IS_CONTACT(node)) - continue; - - contact = (GaimContact *)node; - - if (contact->alias != NULL && !strcmp(contact->alias, name)) - return contact; - - buddy = gaim_contact_get_priority_buddy(contact); - - if (!strcmp(gaim_get_buddy_alias(buddy), name)) - return contact; - } - - return NULL; -} - GaimChat * gaim_blist_find_chat(GaimAccount *account, const char *name) {