[Demande] attendre que l'egg soit posé pour activer un tcl precis
#7
tcl
set nchans 0
foreach chan [channels] {
   if { [channel get $chan inactive]==0 } { incr ::nchans }
}
set joined 0
bind join - "*" countchan
proc countchan {nick uhost handle chan} {
   if {[string tolower $nick]!=[string tolower $::botnick} { return 0 }
   incr ::joined
   if { $::joined == $::nchans} {
      unbind join - "*" countchan
      source scripts/tonscript.tcl
   }
   return 0
}


Répondre


Messages dans ce sujet
RE: attendre que l'egg soit posé pour activer un tcl precis - par CrazyCat - 11/06/2014, 13:24

Atteindre :


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