fix: also include discord.com

This commit is contained in:
ChomeNS
2025-04-07 13:49:40 +07:00
parent 00a374104d
commit 607a131fa5
2 changed files with 4 additions and 3 deletions

View File

@@ -1 +1 @@
2403
2405

View File

@@ -532,8 +532,9 @@ public class DiscordPlugin extends ListenerAdapter {
synchronized (logMessages) {
StringBuilder logMessage = logMessages.get(channelId);
message = logMessage.toString()
// the ZWSP fixes discord.gg showing invite
.replace("discord.gg", "discord\u200b.\u200bgg");
// the ZWSP fixes discord.gg/discord.com showing invite
.replace("discord.gg", "discord\u200b.\u200bgg")
.replace("discord.com", "discord\u200b.\u200bcom");
final int maxLength = 2_000 - ("""
```ansi