Skip to content

Commit 8a8dbd7

Browse files
committed
Wrap !exec output in backticks
Closes #103
1 parent db8d4c0 commit 8a8dbd7

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

1.10.2/src/main/java/net/shadowfacts/discordchat/one_ten_two/DummySender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ITextComponent getDisplayName() {
3232

3333
@Override
3434
public void sendMessage(ITextComponent component) {
35-
OneTenTwoMod.discordChat.sendMessage(OneTenTwoMod.discordChat.getFormatter().command(component.getUnformattedText()));
35+
OneTenTwoMod.discordChat.sendMessage(OneTenTwoMod.discordChat.getFormatter().command("```" + component.getUnformattedText() + "```"));
3636
}
3737

3838
@Override

1.11.2/src/main/java/net/shadowfacts/discordchat/one_eleven_two/DummySender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ITextComponent getDisplayName() {
3232

3333
@Override
3434
public void sendMessage(ITextComponent component) {
35-
OneElevenTwoMod.discordChat.sendMessage(OneElevenTwoMod.discordChat.getFormatter().command(component.getUnformattedText()));
35+
OneElevenTwoMod.discordChat.sendMessage(OneElevenTwoMod.discordChat.getFormatter().command("```" + component.getUnformattedText() + "```"));
3636
}
3737

3838
@Override

1.12.2/src/main/java/net/shadowfacts/discordchat/one_twelve_two/DummySender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public ITextComponent getDisplayName() {
3232

3333
@Override
3434
public void sendMessage(ITextComponent component) {
35-
OneTwelveTwoMod.discordChat.sendMessage(OneTwelveTwoMod.discordChat.getFormatter().command(component.getUnformattedText()));
35+
OneTwelveTwoMod.discordChat.sendMessage(OneTwelveTwoMod.discordChat.getFormatter().command("```" + component.getUnformattedText() + "```"));
3636
}
3737

3838
@Override

1.7.10/src/main/java/net/shadowfacts/discordchat/one_seven_ten/DummySender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public IChatComponent getFormattedCommandSenderName() {
2727

2828
@Override
2929
public void addChatMessage(IChatComponent component) {
30-
OneSevenTenMod.discordChat.sendMessage(OneSevenTenMod.discordChat.getFormatter().command(component.getUnformattedText()));
30+
OneSevenTenMod.discordChat.sendMessage(OneSevenTenMod.discordChat.getFormatter().command("```" + component.getUnformattedText() + "```"));
3131
}
3232

3333
@Override

1.8.9/src/main/java/net/shadowfacts/discordchat/one_eight_nine/DummySender.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public IChatComponent getDisplayName() {
2929

3030
@Override
3131
public void addChatMessage(IChatComponent component) {
32-
OneEightNineMod.discordChat.sendMessage(OneEightNineMod.discordChat.getFormatter().command(component.getUnformattedText()));
32+
OneEightNineMod.discordChat.sendMessage(OneEightNineMod.discordChat.getFormatter().command("```" + component.getUnformattedText() + "```"));
3333
}
3434

3535
@Override

0 commit comments

Comments
 (0)