Fixed bug where the wrong address would be echoed after accepting a
friend request.
This commit is contained in:
parent
62f6dca32e
commit
45b8bdc04d
1 changed files with 2 additions and 1 deletions
|
@ -205,12 +205,13 @@ tox_weechat_cmd_friend(void *data, struct t_gui_buffer *buffer,
|
||||||
return WEECHAT_RC_OK;
|
return WEECHAT_RC_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *hex_id = tox_weechat_bin2hex(request->address, TOX_CLIENT_ID_SIZE);
|
||||||
|
|
||||||
if (accept)
|
if (accept)
|
||||||
tox_weechat_accept_friend_request(request);
|
tox_weechat_accept_friend_request(request);
|
||||||
else
|
else
|
||||||
tox_weechat_decline_friend_request(request);
|
tox_weechat_decline_friend_request(request);
|
||||||
|
|
||||||
char *hex_id = tox_weechat_bin2hex(request->address, TOX_CLIENT_ID_SIZE);
|
|
||||||
weechat_printf(tox_main_buffer,
|
weechat_printf(tox_main_buffer,
|
||||||
"%s%s friend request from %s.",
|
"%s%s friend request from %s.",
|
||||||
weechat_prefix("network"),
|
weechat_prefix("network"),
|
||||||
|
|
Loading…
Reference in a new issue