channel anti-cursing

By pokemaster23 on Sep 01, 2008

basic anti curse. alt+r

on *:text:*:#:{
 if ($me isop $chan) && (bitch isin $1-) || (fuck isin $1-) || (nigga isin $1-) || (nigger isin $1-) || (whore isin $1-) || (fag isin $1-) || (beaner isin $1-) {
 .timer 1 2 Msg # Please do not cuss $nick $+ . You said $1- $+ .
 .timer 1 3 ban $chan $nick 24 hours
 .timer 1 4 kick $chan $nick
 }
}

Comments

Sign in to comment.
DangerOfFate   -  Sep 04, 2008

From what I've seen in his/her snippets he/r can't code if his/her life depended on it..I still need to practice but still....

 Respond  
EL   -  Sep 02, 2008

I haven't learned tokens yet...

Rofl um then you posted

if ($istok($1-,$gettok(%curse,%x,44),32)) ban -ku86400 # $nick 2 Banned For 24 hours

That would only ban, wouldn't it?

Why would you even bother askin if you cant test an see for your self i suggest you learn tokens you will need them more then anything i promise yew;p.`-.-´

 Respond  
napa182   -  Sep 02, 2008

it will kick ban them hence the -k switch and unban useing the -u switch

 Respond  
napalm`   -  Sep 02, 2008

/help /ban

 Respond  
pokemaster23   -  Sep 02, 2008

if ($istok($1-,$gettok(%curse,%x,44),32)) ban -ku86400 # $nick 2 Banned For 24 hours

That would only ban, wouldn't it?

 Respond  
pokemaster23   -  Sep 02, 2008

I haven't learned tokens yet...

 Respond  
Viper01   -  Sep 02, 2008

you can also use $addtok and put all the curse words into 1 variable ._.

 Respond  
napa182   -  Sep 01, 2008

so you have the bot or what ever you are running this script to say the word that you just banned the person for saying , and you also warn them right before you kick ban them kind of pointless...
why not just do this and be done with it?

on @*:text:*:#:{
  var %curse = add,ur,curse,words,here, %x = $numtok(%curse,44)
  while (%x) {
    if ($istok($1-,$gettok(%curse,%x,44),32)) ban -ku86400 # $nick 2 Banned For 24 hours
    dec %x
  }
}
 Respond  
Cheiron   -  Sep 01, 2008

say it as you see it, but remember we (therotically) are here for constructive comments on the snippet usually. lol.. it is not often the way though as you will see

 Respond  
napalm`   -  Sep 01, 2008

I don't even know what to say.

 Respond  
pokemaster23   -  Sep 01, 2008

comments?

 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.