on *:START:{
window @Text_To_Match
}
on *:TEXT:*:#: {
var %line = $1-
var %cnt = 1
var %ttl = $numtok(%line,32)
var %matches = test,test2,test3,test4
while (%cnt <= %ttl) {
var %word = $gettok(%line,%cnt,32)
if ($istok(%word,%matches,44)) {
echo -te @Text_To_Match Text found: %word
}
inc %cnt
}
}