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

/wildmaskban
http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=11
Seite 1 von 1

Autor:  Sephiroth [ 18. März 2008 00:08 ]
Betreff des Beitrags:  /wildmaskban

alias wildmaskban {
  ; usage /wildmaskban <channel> <wildmask> [host type, default 2]
  if ($1 ischan) {
    if ($ialchan($2 $+ !*@*,$1,0)) {
      var %x = $ialchan($2 $+ !*@*,$1,0),%n = "",%i = $iif($3 isnum,$3,2)
      while (%x) {
        %n = %n $replace($mask($ialchan($2 $+ !*@*,$1,%x),%i),~,?)
        if ($numtok(%n,32) == $modespl) {
          mode $1 $str(+b,$modespl) %n
          %n = ""
        }
        dec %x
      }
      if (%n) { mode $1 $str(+b,$numtok(%n,32)) %n }
    }
  }
}

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