irc: do not remove spaces at the end of users messages received (closes #1513)

The regression was introduced in version 2.5 by commit
2b70d71aa1c891f2f251aa775cf239e5611576d5.
This commit is contained in:
Sébastien Helleu 2020-05-19 20:12:13 +02:00
parent d1d3be6fd5
commit 4a67c4a1ab
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ Bug fixes::
* api: replace plugin and buffer name by buffer pointer in argument "modifier_data" sent to weechat_print modifier callback (issue #42)
* exec: fix use of same task id for different tasks (issue #1491)
* fifo: fix errors when writing in the FIFO pipe (issue #713)
* irc: do not remove spaces at the end of users messages received (issue #1513)
* irc: fix realname delimiter color in WHO/WHOX response (issue #1497)
* irc: reuse a buffer with wrong type "channel" when a private message is received (issue #869)
* python: fix crash when invalid UTF-8 string is in a WeeChat hashtable converted to a Python dict (issue #1463)

View File

@ -6691,7 +6691,7 @@ irc_protocol_recv_command (struct t_irc_server *server,
flags = WEECHAT_STRING_SPLIT_STRIP_LEFT
| WEECHAT_STRING_SPLIT_COLLAPSE_SEPS
| WEECHAT_STRING_SPLIT_KEEP_EOL;
if (keep_trailing_spaces)
if (!keep_trailing_spaces)
flags |= WEECHAT_STRING_SPLIT_STRIP_RIGHT;
argv_eol = weechat_string_split (message_colors_decoded, " ", NULL,
flags, 0, NULL);