So $v1 changes from the current line in the text file, to the number of the token that matched the line?
Also, I modified the original to work like this:
on *:text:*:: {
var %n = 1
while ($read(expletives.txt,n,%n)) {
if ($v1 isin $1-) {
kick $chan $nick You said $read(kicks.txt,w,* $+ $v1 $+ *)
break
}
inc %n
}
}
I assume the correct modification is:
on *:text:*:: {
var %n = 1
while ($read(expletives.txt,n,%n)) {
if ($v1 isin $1-) {
kick $chan $nick You said $read(kicks.txt,w,* $+ $gettok($1-,$v1,32) $+ *)
break
}
inc %n
}
}
?
Anyway, I appreciate the help. I'll have to look over this again when I'm not quite as exhausted, because I'm not quite getting the concept.
Thanks, Horstl.