My bad. I overlooked a serious matter, but here is the one I found for you that might just be what you want:

The script below is written by someone else, and I hope this offers some help.

Code:
on ^*:text:*:*: {
  if ($readini(logs.ini,$nick,last) == $1-) {
    if ($readini(logs.ini,$nick,warns) == $null) {
      writeini -n logs.ini $nick warns 0
    }
    writeini -n logs.ini $nick warns $calc($readini(logs.ini,$nick,warns) + 1)
    if ($readini(logs.ini,$nick,warns) >= 3) {
      if ($readini(logs.ini,$nick,warns) == 3) {
        .echo -mt Halted text from: $nick for repetitive text.
        ban -ku600 $chan $nick 3 Tell ya what... Stop floodin. Take a timeout for 10 minutes!
      }
      haltdef
    } 
  }
  if ($readini(logs.ini,$nick,last) != $1-) {
    writeini -n logs.ini $nick warns 0
  }
  writeini -n logs.ini $nick last $1-
}