Try this here. I forgot a few things, but now I think it's ok.
Code:
on @*:text:*:#channel: {
  if ($nick isop #) { halt }
  if ($strip($1-) != $hget(Repeat,$+($nick,$chan))) || (!$hget(Repeat,$+($nick,$chan))) { 
    hadd -m Repeat $+($nick,$chan) $strip($1-)
    hdel Repeat $+($nick,$chan,.count)
    hinc -u[color:red]N[/color] Repeat $+($nick,$chan,.count)
  }
  elseif ($strip($1-) == $hget(Repeat,$+($nick,$chan))) {
    hinc -u30 Repeat $+($nick,$chan,.count)
    if ($hget(Repeat,$+($nick,$chan,.count)) >= [color:blue]N[/color]) { [color:orange]kick $chan $nick out![/color] | [color:purple]hdel -w Repeat $+($nick,$chan,*)[/color] }
  }
}
You just need to change the two N's for the values you wish. The orange command is the one you posted and it is, of course, totally changeable. The other command, on the other hand, it is not. You should leave that one there.

It's 1am here and I've been kinda busy for the past 2 hours, so forgive any mistakes I made. Including this last post :P

Greetings,
Zyzzyx smile