Fixed bug where the wrong address would be echoed after accepting a

friend request.
This commit is contained in:
Håvard Pettersson 2014-09-04 00:34:10 +02:00
parent 62f6dca32e
commit 45b8bdc04d

View file

@ -205,12 +205,13 @@ tox_weechat_cmd_friend(void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_OK;
}
char *hex_id = tox_weechat_bin2hex(request->address, TOX_CLIENT_ID_SIZE);
if (accept)
tox_weechat_accept_friend_request(request);
else
tox_weechat_decline_friend_request(request);
char *hex_id = tox_weechat_bin2hex(request->address, TOX_CLIENT_ID_SIZE);
weechat_printf(tox_main_buffer,
"%s%s friend request from %s.",
weechat_prefix("network"),