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
--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.