If you want to also warn the person when you kick them, then you use 2 IF's. If you want to warn them once and kick on the 2nd - without a 2nd warning - then you leave IF and ELSEIF.

Use this one if you want to warn when you kick.
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) { .notice $nick Please do not repeat. }
    if ($hget(Repeat,$+($nick,$chan,.count)) >= 2) {
      kick $chan $nick Repeat.
      hdel -w Repeat $+($nick,$chan,*)
    }
  }
}


Or use the next one if you want just 1 warning.
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) { .notice $nick Please do not repeat. }
    elseif ($hget(Repeat,$+($nick,$chan,.count)) >= 2) {
      .kick $chan $nick Repeat.
      hdel -w Repeat $+($nick,$chan,*)
    }
  }
}


Zyzzy smile

Last edited by Zyzzyx26; 03/10/04 03:43 PM.