bind msg - test test_msg
proc test_msg {nick host handle args} {
set args [lindex $args 0]
set words [lrange $args 0 end]
putserv "PRIVMSG $nick :$words"
return 1
}
This will make your bot to MSG the user and tell him exactly what he said after the test, as the word test is the command.
See more in the tcl-commands.doc
«A fantastic spaghetti is a spaghetti that does not exist»
You should realy understand, that once you know one language, it doesn't mean you know them all.
Just because mIRC uses these identifiers, it doesn't mean Tcl, or any other language should (no matter how related to IRC).
You should take time to studyy some of the greate guides to scripting, available in the Links section of egghelp.org, and via the FAQ forum on this board.
read my question i asked if it was used the same way i know mirc so i refered to it to make my self clear, but i havn't got an answer to my question yet .. ?? or i don't understand what your talking about give me a syntax and some explanation what you write there can be anything don't want a solution i want to know how to do it my self .. don't mean wrong just hard to understand what vars u use .. i don't know nothing about tcl and i want to know how it is used. the mirc script is just an example i don't want to forward a msg to an other user. but it is easy to refer to