Don't try to do italics on messages with SE opcodes

This commit is contained in:
goat 2019-11-02 14:35:48 +09:00
parent 100c355a07
commit 6b5f8e6bed
2 changed files with 3 additions and 3 deletions

View file

@ -92,8 +92,8 @@ namespace Dalamud.Game {
.GetResult());
if (this.HandledChatTypeColors.ContainsKey(type) || type == XivChatType.Say || type == XivChatType.Shout ||
type == XivChatType.Alliance || type == XivChatType.TellOutgoing || type == XivChatType.Yell) {
if ((this.HandledChatTypeColors.ContainsKey(type) || type == XivChatType.Say || type == XivChatType.Shout ||
type == XivChatType.Alliance || type == XivChatType.TellOutgoing || type == XivChatType.Yell) && !message.Contains((char)0x02)) {
var italicsStart = message.IndexOf("*");
var italicsEnd = message.IndexOf("*", italicsStart + 1);