Badwords echo [PRO]

By Ahmed Zaggoudi on Aug 17, 2011

Hey :)

So I made this snippet to help operators IRC or IRCop .. and other , Because they are working hardly and they need somthing like this to facilitate the Tax Office .
And in my snippet I don't use the command /Kick I choose echo to avoid mistakes ( my snippet can kick innocent ) and If you like to use Kick instead echo you can do it, Just replace this { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- } by this { kick $chan $nick Your reason here }

Enjoy ..

On *:text:*:*:{
  if ((bitch isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((cunt isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((fuck isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((fuck you isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((whore isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((anal isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((horny isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((slut isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((nigga isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((nigger isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((pussy isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((dick isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((ahole isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((anus isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((ass isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((fucker isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((porn isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((shit isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((asshole isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((vagina isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((penis isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((jackass isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((faggot isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((fag isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((horny isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((dickhead isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((gay isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((tits isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((bastard isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
  elseif ((sex isin $1-) && ($active != $chan )) { echo -at 7Bad word possible from10 $chan by4 $nick : 12 $1- }
}

Comments

Sign in to comment.
Jethro   -  Aug 24, 2011

leonlee, this is all you need compared to the if-then-elseif version. This one uses $count(), which functions pretty much the same as the isin operator:

on *:text:*:*:{
  if ($active != #) && ($nick(#,$nick,rv)) && ($count($strip($1-),$&
    bitch,cunt,fuck,fuck you,whore,anal,horny,slut,nigga,nigger,$&
    pussy,dick,ahole,anus,ass,fucker,porn,shit,asshole,vagina,$&
    penis,jackass,faggot,fag,horny,dickhead,gay,tits,bastard,sex)) { 
    echo -at 7Bad word possible from10 # by4 $nick : 12 $1-
  }
}

I've added a check to not kick ops and above.

Some bad words are censored by Hawkee, so you need to edit 'em.

Of course, change the echo to the kick command if you wish.

Amytix, you may need to update it to my example, which cuts down a significant byte size and repetitions.

 Respond  
leonlee   -  Aug 24, 2011

pls add { halt } for op user and voice user.
op users and voice users cannot be kicked

 Respond  
Jethro   -  Aug 19, 2011

Savege_CL, the best "pro" choice would be using the hash table like so:

hadd -m bad *badwords* reason
if ($hfind(bad,TEXT,1,W)) { 
echo -a badword matches $v1 - reason: $hget(bad,$v1) 
}

Using regex is a "winding load" 'cause you'll find yourself adding lots of them...and many line break identifiers later, your remote sure will fill up "nicely."

 Respond  
FelicianoX   -  Aug 19, 2011

Or you can just $read from the badwords.txt file you linked us, it's all up to you if you wanna do it.

 Respond  
Ahmed Zaggoudi   -  Aug 19, 2011

@ Savage_CL yes you'r right "Pro" uses for somthings BEST

 Respond  
Savage_CL   -  Aug 19, 2011

AmytiX, I'm sorry, but pro would be taking that badwords list, putting it all on one line separated by |, and regex matching it. Ask Steph- in my chan if you would like help with the regex, as she did the same thing with her highlight script.

Happy Scripting :)

 Respond  
Dani_l11   -  Aug 19, 2011

Haha, ok you got me

 Respond  
Ahmed Zaggoudi   -  Aug 19, 2011

Dani_l11 : because my snippet consists of all popular bad words (full)

 Respond  
Dani_l11   -  Aug 18, 2011

Why is there [PRO] in the script name? I really wouldn't call this script pro...

 Respond  
Jethro   -  Aug 17, 2011

Felicianox, you have to cut AmytiX some slack. This snippet was made with a one-track mind.

 Respond  
FelicianoX   -  Aug 17, 2011

Wow that is huge, you should look into while loops and $istok, loop through every word in $1- and check if they're in a badwords list/variable.

 Respond  
Ahmed Zaggoudi   -  Aug 17, 2011

lol

 Respond  
PyThOn   -  Aug 17, 2011

Bold
Close the bold lol [/b]
Works fine for me

 Respond  
Ahmed Zaggoudi   -  Aug 17, 2011

If you like to add other bad words you can choosing this +400 badwords
http://code.google.com/p/badwordslist/downloads/detail?name=badwords.txt

 Respond  
PyThOn   -  Aug 17, 2011

O.O

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.