Code:
;on text event
on *1:TEXT:*:#: {
  ; check for length >= (greater or equal) to 300
  if ($len($1-) >= 300) {
    ; check if the message matche the previous one
    if ($1- == %lastMsg) /msg $chan Please don't do that.
    else {
      ; use the /set command with the -u parameter (unset after N seconds)
      ; and make it increase once per N seconds. This makes it so if they say
      ; something twice before the variable unsets, then perform an action
      /set -u10 %lastMsg $1-
    [color:blue]}[/color]
  }
}


Think that is what you want. I've commented to explain it as I went, hope it helps. Also, copy the code to wordpad (start->run->"wordpad", then [OK]), then reselect it, copy it again, and paste to mIRC.

EDIT: Missing a brace (})

Last edited by KingTomato; 05/09/04 08:25 AM.