Bad Channel Kicker

By Phase on Feb 23, 2005

It will ban those in channels matching certain text. It does a /whois on them to check the channel's. The code is pretty straight forward so you should have no problem modifying it to your needs.

on !1:join:#: {
   .enable #badchankick
  set %whoisnick $nick
  set %whoischan $chan
  whois $nick
}
#badchankick on
raw 319:*: { 
  if *preteen* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *rape* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *slut* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *mastur* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *familysex* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *kidsex* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *childsex* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  if *incest* iswm $1- ban -ku300 %whoischan %whoisnick 2 You are on a forbidden channel.
  unset %whoisnick
  unset %whoischan
  .disable #badchankick
}
#badchankick end

Comments

Sign in to comment.
ermansanidhya   -  Jun 19, 2007

mybe \"*\", the problem.

 Respond  
thurdy   -  Feb 16, 2007

--this is really great, but i would like to ask help on modifications how to remove the whois echo of every user. whenever a user gets in the chan, there is always a whois echo of that user, and i have more than 3 chans, and all of those get filled up with whois info of the users.. can anyone help me? great thanks guys.

 Respond  
ttteesstteerr   -  May 26, 2005

any help for make it work for me as im stupid with this things will be appriciated!!

 Respond  
ttteesstteerr   -  May 26, 2005

it is a very usefull Snippet but i have a little problem with it. if add a channel called \'#pao\' and joins a user who is in channel \'#paok\' then he banned. Hope you know what i mean.

 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.