Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Sanitize user input to prevent pings
Browse files Browse the repository at this point in the history
Signed-off-by: applenick <[email protected]>
  • Loading branch information
applenick committed Apr 11, 2021
1 parent 3daf06d commit 9a9ad59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>tc.oc.occ</groupId>
<artifactId>Bolty</artifactId>
<version>1.0.3-SNAPSHOT</version>
<version>1.0.4-SNAPSHOT</version>
<name>Bolty</name>
<description>A minecraft to discord java plugin for Bolt</description>

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/tc/oc/occ/bolt/DiscordBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ public void reload() {
private String format(String text) {
text = ChatColor.translateAlternateColorCodes('&', text);
text = ChatColor.stripColor(text);
return text;
text = text.replace("@", "");
return text.trim();
}

public String getPrefix(RelayType type) {
Expand Down

0 comments on commit 9a9ad59

Please sign in to comment.