Fixed bug in twc_match_friend.

This commit is contained in:
Håvard Pettersson 2014-10-11 12:11:55 +02:00
parent 328ac28aa8
commit f956109dc6
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ twc_match_friend(struct t_twc_profile *profile, const char *search_string)
twc_bin2hex(tox_id, TOX_CLIENT_ID_SIZE, hex_id);
if (weechat_strcasecmp(hex_id, search_string) == 0)
return friend_number;
return friend_numbers[i];
}
char *name = twc_get_name_nt(profile->tox, friend_numbers[i]);