Client side word filter

Ideas and suggestions for how to improve the Warzone 2100 base game only. Ideas for mods go in Mapping/Modding instead. Read sticky posts first!
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Client side word filter

Post by NoQ »

One guy has just suggested that for another game, but i somehow liked it.

Since abusive words in multiplayer chat and lobby names are known to be quite a problem, why don't we implement an optional (on by default, probably just a config file option) word filter on the game side? That is, the bad guy can say whatever he wants, but unless other people explicitly ask for this, his bad words are just filtered out (replaced with ***) by warzone2100 application other people run and thus never reach anybody.
User avatar
Rommel
Trained
Trained
Posts: 446
Joined: 03 Nov 2012, 19:44

Re: Client side word filter

Post by Rommel »

Unless you had a pretty good algorithm regex thingy it would be pretty u.se1ess.
Moving back instead of forward
Seems to me absurd
~
Metallica - Eye of the beholder
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Client side word filter

Post by NoQ »

Shouldn't be the problem; obviously there already exist thousands of implementations of this, used by thousands of web services.
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Client side word filter

Post by Per »

I like the idea. Many games do this. We could even automatically pull down updated lists from somewhere.
Perseus
Trained
Trained
Posts: 56
Joined: 09 Oct 2010, 22:25

Re: Client side word filter

Post by Perseus »

Yes, good idea, as well as in the lobby would be good to have this feature in game as well, so that people don't see those parts of messages coming from abusive people. :)
User avatar
bendib
Regular
Regular
Posts: 1016
Joined: 29 Aug 2010, 05:22
Location: Imeuta

Re: Client side word filter

Post by bendib »

Very doable without regex. I think the standard library of C and C++ both provide utilities to make this near painless in string.h.
I was thinking strncmp() stepping through the string in a stringContains() function. There is a good chance I am forgetting something. I feel like I am forgetting a useful function... :hmm:
Also known as Subsentient.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Client side word filter

Post by stiv »

You could do this with the Standard C library instead of regex, but it would be insane. The problem is more complicated than you realize.
User avatar
Rommel
Trained
Trained
Posts: 446
Joined: 03 Nov 2012, 19:44

Re: Client side word filter

Post by Rommel »

NoQ wrote:Shouldn't be the problem; obviously there already exist thousands of implementations of this, used by thousands of web services.
Yes with all being easily circumvented. I am sure there are more important things that development time could be spent on other than this. If someone is set on being an abusive prick this is not going to stop them - however somekind of proper identification that would allow banning users (as has been discussed) would go a long way toward alleviating the issue of abusive players. I have also found that a good repertoire of mum insults can be a good repellent against griefers ;)

Just my 2 cents + there is a certain regret that would be involved in not being able to properly appreciate tomato_Cat's abusive rejoinders lol
Moving back instead of forward
Seems to me absurd
~
Metallica - Eye of the beholder
User avatar
bendib
Regular
Regular
Posts: 1016
Joined: 29 Aug 2010, 05:22
Location: Imeuta

Re: Client side word filter

Post by bendib »

stiv wrote:You could do this with the Standard C library instead of regex, but it would be insane. The problem is more complicated than you realize.
Sir, you forget, I AM insane!
Also known as Subsentient.