This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

except words

Help for those learning Tcl or writing their own scripts.
Post Reply
b
bero93
Voice
Posts: 8
Joined: Tue Dec 09, 2014 11:29 am

except words

Post by bero93 »

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?
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Not a sound way to trigger a badword script!

Post by SpiKe^^ »

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: Select all

###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: Select all

bind pubm - * badword
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
b
bero93
Voice
Posts: 8
Joined: Tue Dec 09, 2014 11:29 am

Post by bero93 »

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.
Post Reply