From 599345752af3898f0d91e873835c7ef6889e3045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 9 Feb 2017 22:18:20 -0800 Subject: [PATCH] Display entire Tox ID for friend requests As per the Tox Client Standard. --- src/twc-commands.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/twc-commands.c b/src/twc-commands.c index c547778..e5b510a 100644 --- a/src/twc-commands.c +++ b/src/twc-commands.c @@ -506,11 +506,9 @@ twc_cmd_friend(const void *pointer, void *data, struct t_gui_buffer *buffer, struct t_twc_list_item *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[short_id_length + 1]; + char hex_address[TOX_PUBLIC_KEY_SIZE * 2 + 1]; twc_bin2hex(item->friend_request->tox_id, - short_id_length / 2, - hex_address); + TOX_PUBLIC_KEY_SIZE, hex_address); weechat_printf(profile->buffer, "%s[%d] Address: %s\n"