Activation
#6
tcl
# Mieux vaut ne pas cumuler les noms génériques
bind pub n &status pub:flagsStatus

#Oué, mettre arg cay le mal
proc pub:flagsStatus {nick uhost hand chan text} {
# On initialise les variables pour Tcl 8.4
set anticloneChans {}
set protectChans {}

# On vérifie chaque canal...
foreach channel [channels] { 
# Si le bot est pas dessus, osef
if ![onchan $channel] continue
# On ajoute le chan si les flags sont bons
if [channel get $channel "SalonAntiClone"] { lappend anticloneChans $channel }
if [channel get $channel "SalonProtect"] { lappend protectChans $channel }
# Fin du foreach..
}

# On a plus qu'a afficher
if [llength $protectChans] { putserv [concat PRIVMSG $chan :Vip'S activé sur les canaux : [join $protectChans ", "] }
if [llength $anticloneChans] { putserv [concat PRIVMSG $chan :Anti-clone activé sur les canaux : [join $anticloneChans ", "] }

# Cay fini !
return }



Non testé :s
Répondre Avertir


Messages dans ce sujet
Activation - par Julien23 - 05/03/2010, 22:35
RE: Activation - par Artix - 05/03/2010, 23:06
RE: Activation - par Julien23 - 05/03/2010, 23:25
RE: Activation - par BdS - 06/03/2010, 13:02
RE: Activation - par Julien23 - 22/03/2010, 18:00
RE: Activation - par Artix - 01/04/2010, 17:46
RE: Activation - par Julien23 - 01/04/2010, 18:15
RE: Activation - par MenzAgitat - 01/04/2010, 21:02
RE: Activation - par Julien23 - 01/04/2010, 21:11
RE: Activation - par Marc - 01/04/2010, 21:57
RE: Activation - par Julien23 - 01/04/2010, 23:08

Atteindre :


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