I don't see an issue your looping through your text file ok, it should pull up line by line Unless the entries are like
ajdjd ajjdad then i could see why its not working but if its
ajdjd
ajjdad
then everything should be fine
I can suggest this...
on *:open:?:*: {
if ($regex($1-,/(myword|nextword|wow|I|can|choose|alot)/g) == 1) {
.kick # $nick Private Offensive Language
.mode # +b $nick 2
}
}