My 1st Bad Word Kick
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Jul 17, 2009 |
| Last Updated | Jul 17, 2009 |
| Tags | bad kick word |
Introduction
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 12:07 am
Posted on Jul 18, 2009 12:07 am
| Code: |
on *:text:*:#: { if ($me isop $chan) { if ($gettok(fark @#$ ass sex,$1-,32)) { MODE $chan +b $nick KICK $chan $nick No badwords! } } } |
Obviously replace the censored words above with whatever cuss words you want, lol.
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 12:30 am
Posted on Jul 18, 2009 12:30 am
Also add if $nick isop $chan and $nick isvoice $chan so it will not disturbing people when chatting.
I think no need to use gettok etc but there are many ways to create it. So no comment for that.
TO
I think no need to use gettok etc but there are many ways to create it. So no comment for that.
| Code: |
MODE $chan +b $nick KICK $chan $nick No badwords! |
TO
| Code: |
| ban -k $chan $nick 2 No badwords! |
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 1:14 am
Posted on Jul 18, 2009 1:14 am
$gettok would help, because if you use
Wouldn't it pick up on any of those words anywhere? i.e, 'ASSassin'?
| Code: |
| if (ass isin $1-) { |
Wouldn't it pick up on any of those words anywhere? i.e, 'ASSassin'?
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 1:58 am
Posted on Jul 18, 2009 1:58 am
Solitude, using $gettok will trigger the on text event every time, even if words differ from the bad words in the matching range:
As you can see, it will match whatever. You should use $findtok:
| Code: |
| on *:text:*:#:if ($gettok(fark ass sex,$1-,32)) echo -a true |
| Quote: |
| <Jethro_> hello true <Jethro> hello true <Jethro> testing true |
| Code: |
| if ($findtok(fark ass sex,$strip($1-),1,32)) { |
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 2:18 am
Posted on Jul 18, 2009 2:18 am
Yes. If you use $gettok you actually shots the match word..Any word match you will kick them..
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 2:53 am
Posted on Jul 18, 2009 2:53 am
Have you tried using $gettok as solitude posted? It matches anything, even if it's not a bad word. I think an alternative should be:
Actually using $findtok will match exactly the bad words themselves only, so $wildtok is necessary for the script to catch them in a sentence.
| Code: |
| on @*:TEXT:*:#: { var %x = 1, %y = ass fark sex while ($numtok(%y,32) >= %x) { if ($wildtok($strip($1-),$gettok(%y,%x,32),0,32)) { ban -k $chan $nick 2 No badwords! } inc %x } } |
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 18, 2009 3:17 am
Posted on Jul 18, 2009 3:17 am
Yes Jethro_ ..I actually reply to Solitude..and i agree wif u using $findtok..I just explain to him that using $gettok will matches all word that the op set even the person type Assasin, Assrafh etc.. :)
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 19, 2009 4:00 am
Posted on Jul 19, 2009 4:00 am
heh, I like to add things to groups, easy to turn on/off
Similar method to others posted here, basic channel menu included.
| Code: |
#swear.prot off on @*:TEXT:*:#: { if ($nick isreg $chan) { var %i = 0 while (%i < $numtok(%swear.words,32)) { inc %i var %current.word = $gettok(%swear.words,%i,32) if ($istok($strip($1-),%current.word,32) == $true) { ban -ku300 # $nick 2 Swear Word Detected. } } } } #swear.prot end menu channel { - Swear Protection. .On://.enable #swear.prot | echo 4 -at * Your Current Set Swear Words are: %swear.words .Off://.disable #swear.prot | echo 4 -at * Disabled Swear Protection. .Set Swear Words://unset %swear.words | set %swear.words $$?="Enter Swear Words - Reset ALL Again (with spaces)" .- } |
Similar method to others posted here, basic channel menu included.
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 19, 2009 4:51 am
Posted on Jul 19, 2009 4:51 am
may i ask wht is ($me isop $chan) { $nick isvoice $cahn and $nick isreg $chan ????
and the var, and the wrd that have tok tok at the end ??? Sory for asking, some of the codes make me confuse.
and the var, and the wrd that have tok tok at the end ??? Sory for asking, some of the codes make me confuse.
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 19, 2009 1:33 pm
Posted on Jul 19, 2009 1:33 pm
buddy all those are explained in the mIRC help file. /help in mirc as long as you have the help files. You can look up isop, isvoice, *tok, etc.
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 19, 2009 4:34 pm
Posted on Jul 19, 2009 4:34 pm
I'm sure writing all the badwords to a .txt file, and letting the script read from it to identify the badwords. Also adding an alias to add/remove badwords would be essential.
I would write it, but today I'm too lazy. :P
I would write it, but today I'm too lazy. :P
mIRC Snippet:
My 1st Bad Word Kick
Posted on Jul 22, 2009 3:05 pm
Posted on Jul 22, 2009 3:05 pm
| Code: |
on *:text:*:#channel:{ if ($regex($1-,/(sex|fark|@#$|ass)/Si)) { inc %badwordcounter mode # +b-Q $wildsite | kick # $nick No bad words here - %badwordcounter msg $nick Blacklist Word from me for saying4 $regml(1) } } |







