Gammon Forum
Entire forum
MUSHclient
General
Profanity Filter
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Neoshain
(38 posts) bio
|
Date
| Fri 24 Mar 2017 02:12 PM (UTC) |
Message
| I've had a request for a profanity filter. I have the trigger matching on multiple words, and would like to make it so the Client just blacks out the word and leaves everything else the same.
It's been way too long since I've worked in Mushclient, so I'm not remembering much. Can someone point me in the right direction? | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #1 on Fri 24 Mar 2017 10:07 PM (UTC) |
Message
| If I've learned anything in life, it's that profanity filters never work and are almost certainly bad ideas.
On a practical implementation level, do you care about colors? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Nick Gammon
Australia (22,975 posts) bio
Forum Administrator |
Date
| Reply #2 on Tue 28 Mar 2017 04:52 AM (UTC) |
Message
| To replace words in a line (or remove them, even) requires remembering their colours and retaining that - unless of course the MUD is entirely monochrome.
It won't be easy to get right, people can easily work around profanity filters by using stuff like "f---wit" which gets the meaning across fairly well.
Plus, some words like "cock" and "boob" have multiple meanings, not all of which are profane.
I'd also advise against simply blanking out the word, because you can have a sentence change meaning entirely if you leave words out of it. For example, if someone asks:
Quote:
John asks, has anyone grouped with Peter?
Barbara replies, yes ... fuckwit
Now if you blank out the profanity it changes the meaning somewhat. At least replace the profanity with the usual sort of stuff like $^&%#$!@
What might be easier is to make some sort of "ignore" feature where you simply omit entirely lines from someone who swears a lot, and from whom you don't want to hear from again. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
10,630 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.