You can try this, untested tho:
Code:
on @*:text:*:#: {
  if ( %rept == $null ) { set %rept 60 }
  if ( %rep_ban == $null ) { set %repb 120 }
  if ( %rep_antal == $null ) { set %repa 3 }
  if ($nick == null) { return }
  var %rp.repeats = rp. $+ $nick $+ . $+ $chan
  var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
  if ( % [ $+ [ %rp.repeats ] ] == $null ) {
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
  }
  elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
    inc % [ $+ [ %rp.repeats ] ]
  }
  elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.text ] ] $1-
    set -u [ $+ [ %rept ] ] % [ $+ [ %rp.repeats ] ] 1
  }
  if ( % [ $+ [ %rp.repeats ] ] >= %repa ) { 
    kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rept second(s) Banned for $calc(%repb / 60) $+ minute(s)
    ban -u $+ %repb # $nick 3
    unset %rp. $+ $nick $+ . $+ $chan
    unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
  }
}

This will kick a user if he/she repeats something 3 times during the time 60 seconds, it will also ban that person for 2 minutes. To change the amount of time for the repeats, type: "/set %rept 60" or what ever you want it to be, to change the time the ban should last, use: "/set %repb 120" or what you want it to be, and last for how many repeats during the time type: "/set %repa 3" or how many you think it should be. To add this in your mirc, press "ALT + R" and paste it in a empty file there, and remember to remove the " " befor you try set anything: /set %rept 60 <- as an example.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }