Skip to content

Commit 83f19ee

Browse files
authored
Santize @ for discord (#22)
* Santize @ for discord * Replace @ with (at) * Oopsie poopsies
1 parent 2e69828 commit 83f19ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/cssbham/minecraftcore/util/MessageUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public static String getChatColor(String color) {
2222
}
2323

2424
public static String sanitise(String message) {
25-
return ChatColor.stripColor(MarkdownSanitizer.sanitize(message));
25+
return ChatColor.stripColor(MarkdownSanitizer.sanitize(message).replace("@", "(at)"));
2626
}
2727
}

0 commit comments

Comments
 (0)