Remove user-excluding highlights from emotes while keeping (L)OOC support
User-excluding highlights now get highlighted either when they're: 1. Present between double quotes; 2. Starting with LOOC/OOC 2. Having a newline before it. This is due to CC, and Station announcements always having a newline before the actual message.
This commit is contained in:
@@ -118,7 +118,7 @@ public sealed partial class ChatUIController : IOnSystemChanged<CharacterInfoSys
|
|||||||
|
|
||||||
// Make sure the character's name is highlighted only when mentioned directly (eg. it's said by someone),
|
// Make sure the character's name is highlighted only when mentioned directly (eg. it's said by someone),
|
||||||
// for example in 'Name Surname says, "..."' 'Name Surname' won't be highlighted.
|
// for example in 'Name Surname says, "..."' 'Name Surname' won't be highlighted.
|
||||||
keyword = StartAtSign.Replace(keyword, @"(?<=(?<=,.*"".*)|(?<!\[Name].*))");
|
keyword = StartAtSign.Replace(keyword, @"(?<=(?<=^.?OOC:.*:.*)|(?<=,.*"".*)|(?<=\n.*))");
|
||||||
|
|
||||||
_highlights.Add(keyword);
|
_highlights.Add(keyword);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user