Escape . in Discord to fix the invite leaking

This commit is contained in:
Chayapak 2024-10-28 16:53:47 +07:00
parent bff3c2f58d
commit 43d12f2471

View file

@ -389,7 +389,7 @@ public class DiscordPlugin {
String message;
synchronized (logMessages) {
StringBuilder logMessage = logMessages.get(channelId);
message = logMessage.toString();
message = logMessage.toString().replace(".", "\u200b.\u200b"); // the ZWSP fixes discord.gg showing invite
final int maxLength = 2_000 - ("""
```ansi