Open 0verk1ll opened 5 years ago
This is also not a client issue. A client-side profanity filter would be easily circumvented. There are already a number of profanity filter server plugins.
I also don't think it's the job of the client to decide which words should or should not be allowed, I think that task is better left to serve admins.
@NotAFile I think it could be the job of the client, then if the player doesn't want to see profanity that other people post, they don't have to. The filter would not be designed to prevent someone from posting profanity, but prevent them from seeing what other people posted.
I see, in that case this could be done on the client.
Personally, I'd generally prefer to mute the rude players directly, or kick or ban them. Misbehaving players don't usually just swear, and only removing profanity rarely turns rude player's chat messages into acceptable ones.
While it's a feature I certainly wouldn't use, I can see it's purpose.
If someone plans on adding a PR for this, I recommend to have the setting be off by default please.
It would be great if there were an optional profanity filter for chat. I don't think it would be very hard to implement with some basic regex-based rules or a wordlist file. Words that match the criteria could be replaced with underscores or left out entirely.