Originally Posted By: Horstl
I think the OP don't want to check TEXT isin <any line>, but <any line> isin TEXT. In this case - if a text file is used as the source - a loop is inevitable. e.g.:
Code:
  var %n = 1
  while ($read(expletives.txt,n,%n)) {
    if ($v1 isin $1-) {
      kick $chan $nick Your message contained badword $qt($v1)
      break
    }
    inc %n
  }


I think that's what I'm looking for. Thanks. I have a question though. This line:
Code:
while ($read(C:\IcyBot2\expletives.txt,n,%n))
doesn't seem to have the while compare against something. Is that the same as != $null?

Last edited by Mpot; 06/05/09 11:37 PM.