cherche tcl pseudo
#2
Il n'y a pas de tcl comme ça qui existe, mais c'est faisable:
tcl
set canal "#chan"
set fichier "liste.html"
bind join - "$canal *" list:join
bind part - "$canal *" list:part
bind sign - "$canal *" list:quit
 
proc list:join {nick uhost handle chan} { list:log; }
proc list:part {nick uhost handle chan text} {
   if {$nick != $::botnick} { list:log; }
}
proc list:quit {nick uhost handle chan text} {
   if {$nick != $::botnick} { list:log; }
}
proc list:log {} {
   set fp [open $::fichier r]
   foreach cnick [chanlist $::canal] {
      puts $fp $cnick
   }
   close $fp
}


Répondre


Messages dans ce sujet
cherche tcl pseudo - par T4tou - 03/11/2010, 12:21
RE: cherche tcl pseudo - par CrazyCat - 03/11/2010, 12:48
RE: cherche tcl pseudo - par T4tou - 03/11/2010, 13:13
RE: cherche tcl pseudo - par T4tou - 03/11/2010, 13:25
RE: cherche tcl pseudo - par CrazyCat - 03/11/2010, 13:29
RE: cherche tcl pseudo - par T4tou - 03/11/2010, 13:35
RE: cherche tcl pseudo - par CrazyCat - 03/11/2010, 13:39
RE: cherche tcl pseudo - par T4tou - 03/11/2010, 13:45
RE: cherche tcl pseudo - par CrazyCat - 03/11/2010, 13:46
RE: cherche tcl pseudo - par T4tou - 03/11/2010, 13:47

Atteindre :


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