finch/gntconv.c

branch
next.minor
changeset 24951
d0837696fd3a
parent 24456
fa1be35a86da
child 24974
a81952e9babb
--- a/finch/gntconv.c	Fri Oct 31 21:06:26 2008 +0000
+++ b/finch/gntconv.c	Sat Nov 01 13:48:25 2008 +0000
@@ -496,8 +496,9 @@
 	buddies = purple_find_buddies(account, name);
 	for (cur = buddies; cur != NULL; cur = cur->next) {
 		PurpleBlistNode *node = cur->data;
-		if ((node != NULL) && ((node->prev != NULL) || (node->next != NULL))) {
-			finch_log_show_contact((PurpleContact *)node->parent);
+		if ((node != NULL) &&
+				(purple_blist_node_get_sibling_prev(node) || purple_blist_node_get_sibling_next(node))) {
+			finch_log_show_contact((PurpleContact *)purple_blist_node_get_parent(node));
 			g_slist_free(buddies);
 			return;
 		}

mercurial