Open sean-gilliam opened 1 year ago
Not only do we need to make it configurable, but the name isn't clear on the functionality. I don't know why it returns true, or why it returns false. If nothing is detected or something is detected it returns false, but if an immortal or NPC said something the return is true. We can pull the list from SQL on startup and probably do a better transformer using tokenization for identification rather than the current design, which may improve detections.
The below function has a set of hard-coded banned words (slurs, sexual, reserved words, etc). These should be placed in either a database table or a config file for easier maintenance.
https://github.com/rezalas/riftshadow/blob/64db552ffce4827b81df49670f981288280f5b9d/code/act_comm.c#L1614