If a friend's name is unknown, display their address instead.
This commit is contained in:
parent
45b8bdc04d
commit
d8d9791e0b
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ tox_weechat_get_name_nt(int32_t friend_number)
|
||||||
tox_get_name(tox, friend_number, name);
|
tox_get_name(tox, friend_number, name);
|
||||||
|
|
||||||
// if no name, return client ID instead
|
// if no name, return client ID instead
|
||||||
if (weechat_utf8_strlen((char *)name) == 0)
|
if (length)
|
||||||
{
|
{
|
||||||
uint8_t client_id[TOX_CLIENT_ID_SIZE];
|
uint8_t client_id[TOX_CLIENT_ID_SIZE];
|
||||||
tox_get_client_id(tox, friend_number, client_id);
|
tox_get_client_id(tox, friend_number, client_id);
|
||||||
|
|
Loading…
Reference in a new issue