I was wondering how can one check for incoming text against words you have in a text file, such as when you get the text "Testing", and you only have the word "Test" in a text file? Then, the script would block the entire word "Testing". Here is the code I have at the moment...
alias filter {
if (%ifilter == $true) {
var %i = 1
var %filtered = $1-
while ($gettok($1-,%i,32)) {
var %filt = $gettok($1-,%i,32)
if ($read(filteredwords.txt,w,* $+ %filt $+ *)) { var %filtered = $replace($1-,$gettok($1-,%i,32),) }
inc %i
}
return %filtered
}
else return $1-
}