egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

except words

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
bero93
Voice


Joined: 09 Dec 2014
Posts: 8

PostPosted: Mon Dec 22, 2014 8:58 am    Post subject: except words Reply with quote

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
View user's profile Send private message AIM Address
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Mon Dec 22, 2014 6:43 pm    Post subject: Not a sound way to trigger a badword script! Reply with quote

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
View user's profile Send private message Visit poster's website
bero93
Voice


Joined: 09 Dec 2014
Posts: 8

PostPosted: Tue Dec 23, 2014 5:12 am    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber