| View previous topic :: View next topic |
| Author |
Message |
bero93 Voice
Joined: 09 Dec 2014 Posts: 8
|
Posted: Mon Dec 22, 2014 8:58 am Post subject: except words |
|
|
I am strugling with the badwords expressions..
We have a dutch badword like hoer.
and a normal word calles hoera.
how do i do this?
how can i allow hoera and dissalow hoer (in the line "i am a hoer" and "fluthoer" and "hoer is bad" ?
Moderator edit: Please don't revive OLD topics. Open your own and add a reference to yours. Like this for instance:
Reference: log user text to file? |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Mon Dec 22, 2014 6:43 pm Post subject: Not a sound way to trigger a badword script! |
|
|
Proving once & for all how futile all badword scripts are. They never deliver the expected behavior, missing the obvious & triggering erroneously.
Nothing can replace a few good channel moderators that aren't afraid to ban offenders.
The way the script is wrote makes it very hard to write proper binds to cover every possible instance of a word. But let me try....
| Code: |
###The bad words add and remove as you please
bind pubm - "hoer" badword ;# for the word by itself #
bind pubm - "hoer *" badword ;# line starting with the word #
bind pubm - "* hoer" badword ;# line ending with the word #
bind pubm - "* hoer *" badword ;# word somewhere in the line#
| ...and that still doesn't cover every way a person will learn to get by your binds.
It would be much easier to write a single bind and have your script try to figure out if a line includes badwords...
| Code: | | bind pubm - * badword |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
bero93 Voice
Joined: 09 Dec 2014 Posts: 8
|
Posted: Tue Dec 23, 2014 5:12 am Post subject: |
|
|
Thank you Spike (And sorry Moderator)
I agree with you about channel moderators,
The single bind idea is great, i think i will make something like that. |
|
| Back to top |
|
 |
|