Ok, alors voici comment on debugue:
Ensuite, on se connecte en party-line, on fait un .rehash et on tapes:
Et là, tu vois:
Donc, tu vas chercher sur http://wiki.eggdrop.fr/Binds#CHON et tu lis:
Code :
set chan(log) "#staff"
bind chon - join:pl
proc join:pl {hand idx} {
putlog "Procédure join:pl activée par $hand - $idx"
putserv "privmsg $::chan(log) :\0031\[\00312Connection\0031\] \0034$hand \0033vien de se connecter a la \0036Party-Line.\0036"
putlog "PRIVMSG ok, test broadcast"
dccbroadcast "\00312Connection PL Autorisé pour \0034$hand\0034"
putlog "BROADCAST ok"
return 0
}
bind choff - deco:pl
proc deco:pl {hand idx} {
putlog "Procédure deco:pl activée par $hand - $idx"
putserv "privmsg $::chan(log) :\0031\[\00312Déconection\0031\] \0034$hand \0033vien de se déconecter de la \0036Part-Line.\0036"
putlog "PRIVMSG ok, test broadcast"
dccbroadcast "\00312Déconnection PL pour \0034$hand\0034"
putlog "BROADCAST ok"
return 0
}
putlog "\002\0034Chargement.. \002\037\0031Paty-line.tcl V1.0 by bouba89 \037\0031"
Code :
.binds chon
Code :
Liaisons de commande:
TYPE FLAGS COMMAND HITS BINDING (TCL)
No command bindings for type: chon.
wiki a écrit :Syntaxe: bind chon <flags> <mask> <proc>Ah ben voila, tu as oublié le masque (qui est normalement *)