Skip to content

"Alloweds" and "Swears" text files

Alex edited this page Dec 7, 2020 · 1 revision

What are alloweds.txt and swears.txt?

These files are both used to censor any offensive content by blocking words containing a specific set of patterns. These files have their own specific encoding, though the encoding is very simple.

File Format

These files are formatted exactly as a typical text file would be formatted - however, each character that isn't a line-ending character needs to be decoded: this can be done simply by finding the difference between 0xFFFF (65535) and the character's value. Each new line represents a new word / pattern, with CRLF line endings. In addition to this, there is always a new line at the end of the files.