This script will kick and ban any user who says a word in the text file swear.txt
Just add each word on a new line of the text file and you're all set ^_^
on *:INPUT:*:{
if ($1 == !skon) { %st.swear = on | msg $chan Swear Kick is now On }
if ($1 == !skoff) { unset %st.swear | msg $chan Swear Kick deactivated }
}
on *:TEXT:*:#:{
if ((%st.swear == on) && ($nick !isop $chan)) {
var %check = 1
while (%check <= $lines(swear.txt)) {
if ($read(swear.txt, %check) isin $1-) {
mode $chan +b $wildsite
kick $chan $nick PUT MESSAGE HERE
}
inc %check 1
}
}
}
}
u went crazy w/ those brackets :P
i simplified it for ya, and added on @* (ur op), also u still inc after u kick, so why bother kicking the person when theyre already gone :)
on @*:TEXT:*:#:{
if (%st.swear == on && $nick !isop $chan) {
var %check = 1
while ($read(swear.txt,%check)) {
if ($v1 isin $1-) {
mode $chan +b $wildsite
kick $chan $nick Swear Detected: $qt($v1)
}
else inc %check
}
}