summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.adoc1
-rw-r--r--src/plugins/irc/irc-raw.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc
index f36379689..c33e639f9 100644
--- a/ChangeLog.adoc
+++ b/ChangeLog.adoc
@@ -25,6 +25,7 @@ New features::
Bug fixes::
* core: fix context info in buffers with free content (issue #1832)
+ * irc: escape backslashes in raw buffer (issue #1838)
[[v3.7]]
== Version 3.7 (2022-10-09)
diff --git a/src/plugins/irc/irc-raw.c b/src/plugins/irc/irc-raw.c
index 5f9226e25..093733404 100644
--- a/src/plugins/irc/irc-raw.c
+++ b/src/plugins/irc/irc-raw.c
@@ -244,6 +244,12 @@ irc_raw_message_print (struct t_irc_raw_message *raw_message)
buf2[pos_buf2++] = hexa[ptr_buf[pos_buf] % 16];
pos_buf++;
}
+ else if (ptr_buf[pos_buf] == '\\')
+ {
+ buf2[pos_buf2++] = '\\';
+ buf2[pos_buf2++] = '\\';
+ pos_buf++;
+ }
else
{
char_size = weechat_utf8_char_size ((const char *)(ptr_buf + pos_buf));