From 30be0397da2da9fcbb8deb96691c6d305fce7788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Tue, 2 Sep 2014 23:57:06 +0200 Subject: [PATCH] Fixed /msg sending recipient as part of the message. --- 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 34fd8ba..c0dfb04 100644 --- a/src/tox-weechat-commands.c +++ b/src/tox-weechat-commands.c @@ -278,7 +278,7 @@ tox_weechat_cmd_msg(void *data, struct t_gui_buffer *buffer, tox_send_message(tox, friend_number, (uint8_t *)argv_eol[1], - strlen(argv_eol[1])); + strlen(argv_eol[2])); char *name = tox_weechat_get_self_name_nt(); tox_weechat_chat_print_action(chat, name, argv_eol[1]); free(name);