yvt / openspades

Compatible client of Ace of Spades 0.75
http://openspades.yvt.jp/
GNU General Public License v3.0
1.14k stars 217 forks source link

Add Profanity Filter to Chat #796

Open 0verk1ll opened 5 years ago

0verk1ll commented 5 years ago

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.

NotAFile commented 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.

0verk1ll commented 5 years ago

@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.

NotAFile commented 5 years ago

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.

feikname commented 5 years ago

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.