Communauté Eggdrop
TCL msg - Version imprimable

+- Communauté Eggdrop (https://forum.eggdrop.fr)
+-- Forum : Eggdrop et TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=8)
+--- Forum : Scripts TCL (https://forum.eggdrop.fr/forumdisplay.php?fid=4)
+--- Sujet : TCL msg (/showthread.php?tid=996)



TCL msg - mecmec - 26/07/2011

Bonjour,

je suis débutant en eggdrop/tcl

Code :
bind msg - "DEOP" exemple3:repond3
proc exemple3:repond3 {nick uhost handle arg} {
putserv "MODE #Mas -o <RECUPERATION_DU_PSEUDO_A_DEOP>"
return 1
}

je suis en train de bricolé avec une commande:
/msg Eggdrop DEOP <unpseudo>

et donc avec le bind msg j'ai aucune idée comment récupérer le pseudo juste aprés le mot "DEOP", merci de votre aide.

bonne soirée.


RE: TCL msg - djkenny - 26/07/2011

salut,

le pseudo est contenu dans $arg


RE: TCL msg - CrazyCat - 26/07/2011

Et même:
tcl
[lindex $arg 0]





RE: TCL msg - mecmec - 27/07/2011

merci bien , ca marche.