;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]
}
}