From 59fc6d4bf608b672a057cd82bde875b46ce66fb2 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 5 Sep 2022 17:50:05 +0200 Subject: [PATCH] LinkSelfInChatFeature: fix right content of message gets chropped and replaced by name --- PlayerTags/Features/LinkSelfInChatFeature.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlayerTags/Features/LinkSelfInChatFeature.cs b/PlayerTags/Features/LinkSelfInChatFeature.cs index e822cc2..fb1c857 100644 --- a/PlayerTags/Features/LinkSelfInChatFeature.cs +++ b/PlayerTags/Features/LinkSelfInChatFeature.cs @@ -89,7 +89,7 @@ namespace PlayerTags.Features seString.Payloads.Insert(textPayloadIndex, playerTextPayload); // Remove from the chopped text from the original payload - textPayload.Text = textPayload.Text.Substring(0, playerName.Length); + textPayload.Text = textPayload.Text.Substring(playerName.Length); textMatchIndex = textPayload.Text.IndexOf(playerName); }