summaryrefslogtreecommitdiff
path: root/src/plugins/irc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-05-19 20:12:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-05-19 20:12:27 +0200
commit4a67c4a1abfc20e6731aa010ec82c2e6bed0ee8c (patch)
tree35d52cfa0fb9dcfa7809d3da2b6f106e99772b02 /src/plugins/irc
parentd1d3be6fd501b0f380d298f324993b2a0e1ed21e (diff)
downloadweechat-4a67c4a1abfc20e6731aa010ec82c2e6bed0ee8c.zip
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.
Diffstat (limited to 'src/plugins/irc')
-rw-r--r--src/plugins/irc/irc-protocol.c2
1 files changed, 1 insertions, 1 deletions
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);