trying to get my swear script a little more refined, stole it from some help site somewhere, only to find it was a bit limited.
on *:TEXT:*:#channel: {
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) {
/notice $nick You said %current.word $+ . Please refrain from saying that again. (Auto Response)
}
}
}
Problem is, punctuation causes the script to miss the word, so right now my swear word variable is pretty big.
any ideas on how to get it to check for the word, regardless of punctuation?
(examples: f*ck. hell? etc etc)