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

Banprotection (removes only the bans on you)
http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=43
Seite 1 von 1

Autor:  Sephiroth [ 18. März 2008 00:27 ]
Betreff des Beitrags:  Banprotection (removes only the bans on you)

;; Banprotection
;; This banprotections only unbans you - No kickban from other users or so...

on *:OP:#:{ if (($opnick == $me) && (!$timer($cid $+ $chan))) { clearbans $chan } }
on *:SERVEROP:#:{ if (($opnick == $me) && (!$timer($cid $+ $chan))) { clearbans $chan } }
on *:HELP:#:{ if (($hnick == $me) && (!$timer($cid $+ $chan))) { clearbans $chan } }
on me:*:join:#:{ !.timer $+ $cid $+ $chan 1 $iif($uptime(server,3) > 120,5,120) !mode $chan +b }
raw 368:*:{ clearbans $2 }
on @!*:ban:#:{ clearbans $chan }
alias -l clearbans {
  if (($me isop $1) || ($me ishop $1)) {
    var %i 0,%b,%m = $+(-,$str(b,$modespl))
    while (%i < $ibl($1,0)) {
      inc %i | if ($ibl($1,%i) iswm $ial($me)) { var %b = %b $ibl($1,%i) } | if ($numtok(%b,32) == $modespl) { !mode $1 %m %b | unset %b }
    }
    if (%b) { !mode $1 %m %b }
  }
}

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