From 62f6dca32ef751238073a34eebb8b18f0e34af39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 4 Sep 2014 00:32:18 +0200 Subject: [PATCH] Fixed a bug where it was impossible to accept specific friend requests. --- src/tox-weechat-commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tox-weechat-commands.c b/src/tox-weechat-commands.c index 362364a..f359d7d 100644 --- a/src/tox-weechat-commands.c +++ b/src/tox-weechat-commands.c @@ -196,7 +196,7 @@ tox_weechat_cmd_friend(void *data, struct t_gui_buffer *buffer, } else { - unsigned int num = atoi(argv[1]); + unsigned int num = atoi(argv[2]); if (num == 0 || (request = tox_weechat_friend_request_with_num(num)) == NULL) { weechat_printf(tox_main_buffer,