1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-10 03:33:12 +02:00

irc: fix unexpected message sent to server when part of the second line of an IRC command (closes #1992)

This commit is contained in:
Sébastien Helleu
2023-09-12 08:14:23 +02:00
parent 8eb2604704
commit c4c58e0914
6 changed files with 56 additions and 15 deletions
+5 -2
View File
@@ -319,7 +319,8 @@ irc_input_send_user_message (struct t_gui_buffer *buffer, int flags,
return;
}
list_messages = irc_server_sendf (ptr_server,
flags | IRC_SERVER_SEND_RETURN_LIST,
flags | IRC_SERVER_SEND_RETURN_LIST
| IRC_SERVER_SEND_MULTILINE,
tags,
"PRIVMSG %s :%s",
ptr_channel->name, message);
@@ -386,7 +387,9 @@ irc_input_data (struct t_gui_buffer *buffer, const char *input_data, int flags,
{
if (ptr_server)
{
irc_server_sendf (ptr_server, flags, NULL,
irc_server_sendf (ptr_server,
flags | IRC_SERVER_SEND_MULTILINE,
NULL,
"%s", weechat_utf8_next_char (input_data));
}
return WEECHAT_RC_OK;