Fix message marker mixed with actual message body

Should fix regex not working for autorespond and other chatbots that relied on matching message
This commit is contained in:
ReinforceZwei 2023-03-25 16:42:28 +08:00
parent 4c33c5fc27
commit 8da8f6044f
3 changed files with 39 additions and 32 deletions

View file

@ -142,34 +142,7 @@ namespace MinecraftClient.Protocol.Message
default:
goto case MessageType.CHAT;
}
string color = string.Empty;
if (message.isSystemChat)
{
if (Config.Signature.MarkSystemMessage)
color = "§7▌§r"; // Background Gray
}
else
{
if ((bool)message.isSignatureLegal!)
{
if (Config.Signature.ShowModifiedChat && message.unsignedContent != null)
{
if (Config.Signature.MarkModifiedMsg)
color = "§6▌§r"; // Background Yellow
}
else
{
if (Config.Signature.MarkLegallySignedMsg)
color = "§2▌§r"; // Background Green
}
}
else
{
if (Config.Signature.MarkIllegallySignedMsg)
color = "§4▌§r"; // Background Red
}
}
return color + text;
return text;
}
/// <summary>