on *:text:*:#:{
if ( $me !isop $chan ) { halt }
if (%word.kick == on) {
set %badword.line 1
:badword
if ( $read -l $+ %badword.line $mircdir\file_name == $null ) { halt }
elseif ( $read -l $+ %badword.line $mircdir\file_name isin $1- ) { goto badwordkick }
else { inc %badword.line | goto badword }
:badwordkick
if (%ban.bad.word == on) ban -u [ $+ [ %bad-word-ban ] ] $chan $nick
kick # $nick kick message
else { halt }
:end
}
}
maybe this is what you want? remember to change the lines
$mircdir\file_name that line in this code..
if you want it to ban,
set %ban.bad.word on else set it off... to set the time for how long the ban should last, use
set %bad-word-ban, set it to 60 would give a ban for 1 minute. to disable the script..
set %word.kick off ... and to enable it set it on..