Okay. Don't worry we all make mistakes smile


Code:
on @*:text:*:#channel: {
  if ($nick isop #) { halt }
  if ($strip($1-) != $hget(Repeat,$+($nick,$chan))) || (!$hget(Repeat,$+($nick,$chan))) {
    hadd -m Repeat $+($nick,$chan) $strip($1-)
  }
  elseif ($strip($1-) == $hget(Repeat,$+($nick,$chan))) {
    hinc -u60 Repeat $+($nick,$chan,.count)
    if ($hget(Repeat,$+($nick,$chan,.count)) >= 1) {
      [color:blue].notice $nick Please do not repeat.[/color]
    }
    elseif ($hget(Repeat,$+($nick,$chan,.count)) >= 2) {
      [color:red].kick $chan $nick Repeat.[/color]
      hdel -w Repeat $+($nick,$chan,*)
    }
  }
}


Now i got this. I want it to give the user a warning after repeating once and then kick him if he does it again.
The problem is that if i type "Hello" 2 times it gives me a warning and that's okay. But 3rd time i type "Hello" it gives me a warning again. Can someone see what's wrong with the script?

Last edited by NoPleX; 03/10/04 08:35 AM.