benilla-re systems structs docs

BuildWordFilterLists

function · unassigned

Address
0x6c91a0 · 929 bytes, up to 0x6c9540
Signature
void __fastcall (int32_t region)
Meaning
Compiles the NamesProfanity, ChatProfanity, NamesReserved and SpamMessages rows into the filter lists
Confidence
verified, proof one
Finding
ui/chatfilter#the-word-lists

Finding: The word lists in ui: the spam and profanity filters

The filters match compiled regular expressions held in five arrays of 16-byte entries, each array a {capacity, count, base} triple. The spam filter reads the SpamMessages list and then the list pushed by the server; the masker reads the ChatProfanity list; the character name validator reads NamesReserved, ChatProfanity and NamesProfanity. The four file lists are loaded once at start-up from the DBC files of those names; the server list is empty until the server sends opcode 0x332. A row that does not compile is skipped, so a list's count is the number of rows that compiled.

The derivation is in the doc.

Callers 1

Callees 4

Calls and jumps by a bare address, from tables/calls.tsv.