Rename macros per the new core API.
- TOX_FRIEND_ADDRESS_SIZE -> TOX_ADDRESS_SIZE - TOX_CLIENT_ID_SIZE -> TOX_PUBLIC_KEY_SIZE - TOX_USERSTATUS(_*) -> TOX_USER_STATUS(_*) - TOX_FAERR_* -> TOX_ERR_FRIEND_ADD_*
This commit is contained in:
@@ -65,11 +65,11 @@ twc_completion_friend(void *data,
|
||||
{
|
||||
if (flags & TWC_COMPLETE_FRIEND_ID)
|
||||
{
|
||||
uint8_t tox_id[TOX_CLIENT_ID_SIZE];
|
||||
char hex_id[TOX_CLIENT_ID_SIZE * 2 + 1];
|
||||
uint8_t tox_id[TOX_PUBLIC_KEY_SIZE];
|
||||
char hex_id[TOX_PUBLIC_KEY_SIZE * 2 + 1];
|
||||
|
||||
tox_get_client_id(profile->tox, friend_numbers[i], tox_id);
|
||||
twc_bin2hex(tox_id, TOX_CLIENT_ID_SIZE, hex_id);
|
||||
twc_bin2hex(tox_id, TOX_PUBLIC_KEY_SIZE, hex_id);
|
||||
|
||||
weechat_hook_completion_list_add(completion, hex_id, 0,
|
||||
WEECHAT_LIST_POS_SORT);
|
||||
|
||||
Reference in New Issue
Block a user