bind chon eggdrop
#6
Ok, alors voici comment on debugue:
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"
Ensuite, on se connecte en party-line, on fait un .rehash et on tapes:
Code :
.binds chon
Et là, tu vois:
Code :
Liaisons de commande:
  TYPE FLAGS    COMMAND              HITS BINDING (TCL)
No command bindings for type: chon.
Donc, tu vas chercher sur http://wiki.eggdrop.fr/Binds#CHON et tu lis:
wiki a écrit :Syntaxe: bind chon <flags> <mask> <proc>
Ah ben voila, tu as oublié le masque (qui est normalement *)
Répondre


Messages dans ce sujet
bind chon eggdrop - par bouba89 - 03/12/2012, 17:56
RE: bind chon eggdrop - par CrazyCat - 03/12/2012, 18:06
RE: bind chon eggdrop - par bouba89 - 03/12/2012, 18:37
RE: bind chon eggdrop - par CrazyCat - 03/12/2012, 22:50
RE: bind chon eggdrop - par bouba89 - 03/12/2012, 22:55
RE: bind chon eggdrop - par CrazyCat - 04/12/2012, 12:10
RE: bind chon eggdrop - par bouba89 - 04/12/2012, 17:15

Atteindre :


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