Variable dans un fichier texte
#2
Salut momoy et bienvenue sur le forum !

Pour faire ce que tu désires, il existe la commande "subst".

Voici un exemple appliqué :
tcl
set msg(bienvenue) "Salut $nick"
 
bind join - * proc:join
 
proc proc:join {nick host hand chan} {
   global msg
 
   puthelp "PRIVMSG $chan :[subst -nocommands $msg(bienvenue)]"
 
   return 0
 
}



Voir la documentation sur la commande


Je pense que si tu as compris comment la fonction "subst" fonctionne (hihi le jeux de mot), tu n'auras pas de mal à l'appliquer à ton système.



Bon courage, et n'hésites pas à faire usage du forum si tu as besoin d'aide.
Répondre Avertir


Messages dans ce sujet
Variable dans un fichier texte - par Moymoy - 02/06/2008, 18:04
RE: Variable dans un fichier texte - par DaV34 - 03/06/2008, 21:46
RE: Variable dans un fichier texte - par Moymoy - 04/06/2008, 07:45
RE: Variable dans un fichier texte - par DaV34 - 04/06/2008, 17:44

Atteindre :


Utilisateur(s) parcourant ce sujet : 2 visiteur(s)
Tchat 100% gratuit -Discutez en toute liberté Tchatte avec Axelle Tchatte avec ta banquière