From 4a67c4a1abfc20e6731aa010ec82c2e6bed0ee8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Tue, 19 May 2020 20:12:13 +0200 Subject: [PATCH] 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. --- ChangeLog.adoc | 1 + src/plugins/irc/irc-protocol.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 1bfadf3b1..3124d456b 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -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) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index a1aa89488..82efb5412 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -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);