* Use `g_slist_find_custom` instead of manual search. `BonjourBuddy` doesn't have `NULL` data in `ips` list.
* Add `_find_match_buddies_by_address` to reduce copypaste.
* Change comparisons order to reduce nesting.
Testing Done:
Compile.
Reviewed at https://reviews.imfreedom.org/r/545/
# Biełaruski pierakład Pidgin
# Copyright (C) 2007 THE pidgin'S COPYRIGHT HOLDER
# This file is distributed under the same license as the pidgin package.