Display entire Tox ID for friend requests

As per the Tox Client Standard.
<https://github.com/Tox/Tox-Client-Standard>
This commit is contained in:
Håvard Pettersson 2017-02-09 22:18:20 -08:00
parent c26fbd9f55
commit 599345752a

View File

@ -506,11 +506,9 @@ twc_cmd_friend(const void *pointer, void *data, struct t_gui_buffer *buffer,
struct t_twc_list_item *item; struct t_twc_list_item *item;
twc_list_foreach(profile->friend_requests, index, item) twc_list_foreach(profile->friend_requests, index, item)
{ {
size_t short_id_length = weechat_config_integer(twc_config_short_id_size); char hex_address[TOX_PUBLIC_KEY_SIZE * 2 + 1];
char hex_address[short_id_length + 1];
twc_bin2hex(item->friend_request->tox_id, twc_bin2hex(item->friend_request->tox_id,
short_id_length / 2, TOX_PUBLIC_KEY_SIZE, hex_address);
hex_address);
weechat_printf(profile->buffer, weechat_printf(profile->buffer,
"%s[%d] Address: %s\n" "%s[%d] Address: %s\n"