Format de ban
#3
Voila une petite procédure utile pour toi:
tcl
# choix du type de ban
set masktype 0
# valeurs possibles:
#   0 - *!*@machine.domain.com / *!*@555.555.555.555
#   1 - *!*ident@machine.domain.com / *!*ident@555.555.555.555
#   2 - *!*ident@*.domain.com / *!*ident@555.555.555.*
 
proc masktype {uhost} {
  switch -exact -- $::masktype {
    0 {return *!*[string range $uhost [string first @ $uhost] end]}
    1 {return *!*$uhost}
    2 {return *!*[lindex [split [maskhost $uhost] "!"] 1]}
  }
  return
}


Répondre


Messages dans ce sujet
Format de ban - par bewess - 30/10/2008, 15:15
RE: Format de ban - par bewess - 31/10/2008, 10:59
RE: Format de ban - par CrazyCat - 31/10/2008, 14:10
RE: Format de ban - par bewess - 31/10/2008, 14:58
RE: Format de ban - par CrazyCat - 02/11/2008, 19:03

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté