Try this code.
Code:
on @*:text:*:#: {
  if ( %rep_time == $null ) { set %rep_time 60 }
  if ( %rep_ban == $null ) { set %rep_ban 120 }
  if ( %rep_amount == $null ) { set %rep_amount 3 }
  if ($nick == null) { return }
  var %rp.repeats = rp. $+ $nick $+ . $+ $chan
  var %rp.text = rp. $+ $nick $+ . $+ $chan $+ .text
  if ( % [ $+ [ %rp.repeats ] ] == $null ) {
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1-
  }
  elseif ( % [ $+ [ %rp.text ] ] == $1- ) {
    inc % [ $+ [ %rp.repeats ] ]
  }
  elseif ( % [ $+ [ %rp.text ] ] != $1- ) {
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.text ] ] $1-
    set -u [ $+ [ %rep_time ] ] % [ $+ [ %rp.repeats ] ] 1
  }
  if ( % [ $+ [ %rp.repeats ] ] >= %rep_amount ) {

   ; Edit this line if you want to echo instead of kick
   ; If you dont use ban, just remove > Banned for $calc(%rep_ban / 60)) $+ minute(s)
    kick # $nick % [ $+ [ %rp.repeats ] ] repeats in %rep_time second(s) Banned for $calc(%rep_ban / 60)) $+ minute(s) $+ )

    ; If you dont want the ban function at all, just remove the line
    if (%ban_user == 1) { ban -u $+ %rep_ban # $nick 3 }
    unset %rp. $+ $nick $+ . $+ $chan
    unset %rp. $+ $nick $+ . $+ $chan $+ . $+ text
  }
}

Everything is set with /set %variable value

How long time to count the repeats: set %rep_time 60
How long time should the ban last : set %rep_ban 120
How many repears befor kick : set %rep_amount 3
Do you want to ban the users : set %ban_user 1 ( set %ban_user 0 <- to disable )

And this code goes in to your remote. ALT + R in your mirc.


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