Skip to content

Commit 4cb6629

Browse files
committed
fix(chatsync): escaping of quote character
1 parent 154698b commit 4cb6629

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/helpers/fifo-handler.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class ServerFifoManager {
8585
if (sendWithUsername === true)
8686
toSend = `${message.author.username}: ${message.cleanContent}`;
8787
else toSend = `${message.cleanContent}`;
88+
toSend = toSend.replaceAll("`", "\\`");
8889
this.usedFifos.forEach((server) => {
8990
if (server.serverObject.discordid === message.channel.id)
9091
server.serverFifo.write(toSend, () => {});
@@ -101,6 +102,7 @@ class ServerFifoManager {
101102
if (sendWithUsername === true)
102103
toSend = `${message.author.username}: ${message.cleanContent}`;
103104
else toSend = `${message.cleanContent}`;
105+
toSend = toSend.replaceAll("`", "\\`");
104106
this.usedFifos.forEach((server) => {
105107
server.serverFifo.write(toSend, () => {});
106108
});

0 commit comments

Comments
 (0)