mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Don't try to do italics on messages with SE opcodes
This commit is contained in:
parent
100c355a07
commit
6b5f8e6bed
2 changed files with 3 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ namespace Dalamud.Injector {
|
||||||
Process.GetCurrentProcess().Kill();
|
Process.GetCurrentProcess().Kill();
|
||||||
};
|
};
|
||||||
|
|
||||||
int pid = int.Parse(args[0]);
|
var pid = int.Parse(args[0]);
|
||||||
|
|
||||||
Process process = null;
|
Process process = null;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -92,8 +92,8 @@ namespace Dalamud.Game {
|
||||||
.GetResult());
|
.GetResult());
|
||||||
|
|
||||||
|
|
||||||
if (this.HandledChatTypeColors.ContainsKey(type) || type == XivChatType.Say || type == XivChatType.Shout ||
|
if ((this.HandledChatTypeColors.ContainsKey(type) || type == XivChatType.Say || type == XivChatType.Shout ||
|
||||||
type == XivChatType.Alliance || type == XivChatType.TellOutgoing || type == XivChatType.Yell) {
|
type == XivChatType.Alliance || type == XivChatType.TellOutgoing || type == XivChatType.Yell) && !message.Contains((char)0x02)) {
|
||||||
var italicsStart = message.IndexOf("*");
|
var italicsStart = message.IndexOf("*");
|
||||||
var italicsEnd = message.IndexOf("*", italicsStart + 1);
|
var italicsEnd = message.IndexOf("*", italicsStart + 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue