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

Simple Autolimit example
http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=45
Seite 1 von 1

Autor:  Sephiroth [ 18. März 2008 00:29 ]
Betreff des Beitrags:  Simple Autolimit example

;; autolimit at your Channel

alias autolimit {
  ;; set this to $false to deactivate autolimit
  return $true
}
alias activechans {
  ;; add here the channels
  set %limit 5
  return #channel1 #channel2 #channel3 #channel4
}
on *:quit:{
  if ($autolimit) {
    var %x = $activechans,%y = $numtok(%x,32),%c
    while (%y) {
      %c = $gettok(%x,%y,32)
      if ($nick ison %c) .timerlimit 1 10 mode %c +l $!calc($nick(%c,0) + % $+ limit)
      dec %y
    }
  }
}
on *:part:#: if ($istok($activechans,#,32) && $autolimit) { .timerlimit 1 10 mode # +l $!calc($nick( $+ # $+ ,0) + % $+ limit) }
on *:join:#: if ($istok($activechans,#,32) && $autolimit) { .timerlimit 1 10 mode # +l $!calc($nick( $+ # $+ ,0) + % $+ limit) }
on *:kick:#: if ($istok($activechans,#,32) && $autolimit) { .timerlimit 1 10 mode # +l $!calc($nick( $+ # $+ ,0) + % $+ limit) }

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