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);