I can try smile It goes by the same basis as the flood one, but it stores the line previously said by the person and compares to the one being said now. I suggest using a hash table to store those because, if you're on a big chan, you can get a lot of vars.
Code:
on @*:text:*:#channel: {
 if ($nick isop #) { halt }
 if ($strip($1-) != $hget(Repeat,$+($nick,$chan))) { hadd -m Repeat $+($nick,$chan) $v1 }
 elseif ($strip($1-) == $hget(Repeat,$+($nick,$chan))) {
  hinc -u[color:blue]N[/color] Repeat $+($nick,$chan,.count)
  if ($hget(Repeat,$+($nick,$chan,.count)) >= [color:red]N[/color]) { commands here }
 }
}
This is not tested, but in theory should work. It stores 2 items in the hash table Repeat: one is the line previously said and one with the counting. As before, the blue N is the amount of time that they can repeat, while the red N is the amount of lines they can repeat in N seconds.

I hope this can help smile
Zyzzyx.