swear.words list - 13/01/05 08:38 AM
ok i figure sincet i got the help on getting the code to wortk and it does i should start a new topic for this i would like to know if i can make some sort of .ini/mrc file for all the swear words because i have a large list that it wont take now here is the code for the warn/ban bot
all help is apreciated
Code:
alias swear { return [censored] [censored] } on @*:TEXT:*:#: { if ($nick !isop #) { var %i = 0 while (%i < $numtok(%swear.words,32)) { inc %i var %current.word = $gettok(%swear.words,%i,32) { if ($istok($strip($1-),%current.word,32) == $true) { set -u3600 %rl. [ $+ [ $address($nick,2) ] ] $calc( %rl. [ $+ [ $address($nick,2) ] ] + 1) if (%rl. [ $+ [ $address($nick,2) ] ] == 1) { notice $nick Please don't swear! - this is your first warning! } if (%rl. [ $+ [ $address($nick,2) ] ] == 2) { notice $nick Please don't swear! - this is your second warning next time you will be banned! } if (%rl. [ $+ [ $address($nick,2) ] ] >= 3) { ban -k $chan $nick 2 Banned for $duration($duration(24 hrs)) --> $ifmatch <-- } } } } } }
all help is apreciated