There's something wrong with the orange part, as %longlinetimeout is never set or increased outside the if statement so as to become > 4. The script will never enter the if statement.

Also, avoid using hfind. It'll make the hash table slow down a lot for no reason! You could use:
hadd -u10 longline $hash($1-,32) %longlinecount
and then as simple if $hget(longline,$hash($1-,32) ) != $null
Besides you don't use it as data! You just want to know if it's there!

Be well!

Edit:
Code:
on *:START:{ hmake -s 50 longline }
on *:TEXT:*:#chanA,#chanB:{
  if ($len($1-) >= 300) {
    hinc -u[color:blue]10[/color] longline $hash($1-,32)
    if $hget(longline,$hash($1-,32)) >= [color:red]2[/color] {
      notice $nick Please don't repeat long lines
      hdel longline $hash($1-,32)
    } 
  }
} 


Blue is the amount of seconds.
Red is the amount of repetitions allowed in this period of time.

Last edited by dr_Eamer; 05/09/04 01:20 PM.