diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2023-09-12 08:14:23 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2023-09-12 08:14:23 +0200 |
commit | c4c58e0914f7c5aaabe046d8cce33862ad28511d (patch) | |
tree | 104c8138b6f20e4b2ef6203ba1ef8595440aa1c8 /src/plugins/irc/irc-input.c | |
parent | 8eb260470496dea57458fc0772509c5ff5c3505c (diff) | |
download | weechat-c4c58e0914f7c5aaabe046d8cce33862ad28511d.zip |
irc: fix unexpected message sent to server when part of the second line of an IRC command (closes #1992)
Diffstat (limited to 'src/plugins/irc/irc-input.c')
-rw-r--r-- | src/plugins/irc/irc-input.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-input.c b/src/plugins/irc/irc-input.c index 6071396c0..73c999e8c 100644 --- a/src/plugins/irc/irc-input.c +++ b/src/plugins/irc/irc-input.c @@ -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; |