03/02/2010, 10:46
(Modification du message : 03/02/2010, 10:48 par MenzAgitat.)
soit tu l'appelles par $monscript::test, soit tu mets une ligne variable test au début de chaque procédure qui utilise la variable afin de l'importer et de pouvoir l'appeler $test ensuite :
ou
TCL
namespace eval monscript {
variable test "un test"
bind pub - !test monscript::test
proc test { nick host handle chan args } {
putserv "privmsg $chan :$monscript::test"
}
}
ou
TCL
namespace eval monscript {
variable test "un test"
bind pub - !test monscript::test
proc test { nick host handle chan args } {
variable test
putserv "privmsg $chan :$test"
}
}