Fixed /msg sending recipient as part of the message.

This commit is contained in:
Håvard Pettersson 2014-09-02 23:57:06 +02:00
parent 49ad868436
commit 30be0397da

View file

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