MaskProfanity
function · ui · primitive
- Address
0x4a1a60· 564 bytes, up to0x4a1c93- Meaning
- Overwrites each match of a profanity pattern with the next mask characters and returns whether any matched
- Confidence
- verified, proof one
- Finding
- ui/chatfilter#masking
Finding: Masking in ui: the spam and profanity filters
0x4a1a60(text, useCache) replaces each match of each profanity pattern with the next character of
!@#$%^&*, one byte for one byte of the match. The next-character index 0xb6e5f0 is shared by the whole
process: it starts at 0, advances after every replaced byte and wraps at 8, so the mask continues from
one match, line and caller to the next. All patterns of the list are applied in list order, not in text
order, and every occurrence of each is masked.
The derivation is in the doc.
Callers 11
- AddChatLine ui
- HandleMailListResultPacket ui
- Script::GetInboxText ui
- Script::GetGuildInfo ui
- MaskGuildMemberNotes ui
- OnGuildRoster ui
- Script::GetGuildRosterInfo ui
- Script::GuildControlGetRankName ui
- ShowItemTextPage ui
- DrunkTransformText ui
- ReadGuildEvent objectlayer
Callees 9
- 0x41c050 base
- Relink4a4270 ui
- 0x4a4950 ui
- GrowOnLongChain4a4b90 ui
- SStrCmp storm
- SStrCopy storm
- SStrDupA storm
- SStrHashHT storm
- RegexSearch unassigned
Calls and jumps by a bare address, from tables/calls.tsv.