Code:
alias badword {
  var %ctr = 1,%tmp = swear.txt
  while ($read(%tmp,%ctr)) {
    if ($istok($strip($1-),$ifmatch,32)) { return $true | halt }
    inc %ctr
  }
  return $false
}

On @*:TEXT:*:#:{
  if ($badword($1-)) { echo -a Bad word detected from $nick $+ . Do whatever you want here. }
}


That should do the trick.

[edit]Oh and your text file structure should be one bad word per line.[/edit]

Last edited by c0ldfusi0n; 15/07/03 11:50 PM.

- cF
Dedicated helper for rent.