Sephiroth
http://sephiroth.scifi-action.de/board/

Anti-Repeat-Prot-Example
http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=26
Seite 1 von 1

Autor:  Sephiroth [ 18. März 2008 00:18 ]
Betreff des Beitrags:  Anti-Repeat-Prot-Example

;; Replace yourchannel with the name of your channel

on @1:text:*:#yourchannel:{
  if ($1- == %last [ $+ [ $nick ] $+ ] - [ $+ [ # ] ]) { inc %last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] }
  else { unset %last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] }
  set -u120 %last [ $+ [ $nick ] $+ ] - [ $+ [ # ] ] $1-
  if (%last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] == 2) .notice $nick Please don't repeat yourself.
  elseif (%last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] == 3) .kick # $nick Please don't repeat yourself!
  elseif (%last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] >= 4) { ban -u600 # $nick 0 | kick # $address($nick,0) Don't repeat yourself! | unset %last [ $+ [ $nick ] $+ ] . [ $+ [ # ] ] | unset %last [ $+ [ $nick ] $+ ] - [ $+ [ # ] ] }
}
alias kick {
  tokenize 32 $iif($1,$1-,$active $1-)
  if (*?!*?@?* iswm $2) {
    var %ial = $ialchan($2,$1,0),%c = $1,%r = $3-,%n
    while (%ial) { %n = $ialchan($2,$1,%ial).nick | !kick %c %n %r | dec %ial }
  }
  else { !kick $1- }
}

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/