From b5cff8fac87ac15996352f0e0a0543981c81ae2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 4 Sep 2014 18:58:50 +0200 Subject: [PATCH] Fixed address not being displayed when friend name is unknown. --- src/tox-weechat-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox-weechat-utils.c b/src/tox-weechat-utils.c index 1bc3fb7..488e888 100644 --- a/src/tox-weechat-utils.c +++ b/src/tox-weechat-utils.c @@ -60,7 +60,7 @@ tox_weechat_get_name_nt(int32_t friend_number) tox_get_name(tox, friend_number, name); // if no name, return client ID instead - if (length) + if (!length) { uint8_t client_id[TOX_CLIENT_ID_SIZE]; tox_get_client_id(tox, friend_number, client_id);