21/09/2014, 11:10
Je pense que si tu avais un peu cherché sur le forum et le wiki, tu aurais trouvé comment faire ça.
Je viens de le mettre sur http://tools.eggdrop.fr/pasteme/view/d182ebd6 :
Je viens de le mettre sur http://tools.eggdrop.fr/pasteme/view/d182ebd6 :
tcl
set jc "#toto"
set jcpt 0
bind join - * joinc
proc joinc {nick uhost handle chan} {
if {[string tolower $chan] != [string tolower $::jc]} { return 0 }
if {[string tolower $nick] == [string tolower $::botnick] } { return 0 }
incr ::jcpt
putserv "NOTICE $nick :Tu es le N°$::jcpt"
return 1
}
bind pub - "!compteur" joindisp
proc joindisp {nick uhost handle chan args} {
if {[string tolower $chan] != [string tolower $::jc]} { return 0 }
putserv "PRIVMSG $chan :Il y a eu $::jcpt entrées sur $chan"
return 1
}