bind pub - !commands com_pub
proc com_pub {nick host handle chan args} {
set first "Here write the first command"
set second "Here write the second command"
set third "Here write the third command"
puthelp "NOTICE $nick :$first"
puthelp "NOTICE $nick :$second"
puthelp "NOTICE $nick :$third"
return 1
}
You can do it much better if you read the tcl-commands.doc or read a guide to write your own TCL scripts
«A fantastic spaghetti is a spaghetti that does not exist»
bind pub - !commands com_pub
proc com_pub {nick host handle chan args} {
set first "Here write the first command"
set second "Here write the second command"
set third "Here write the third command"
ser fourth "Here write the third command
puthelp "NOTICE $nick :$first"
puthelp "NOTICE $nick :$second"
puthelp "NOTICE $nick :$third"
puthelp "NOTICE $nick :$fourth
return 1
}
If you have all the 3 binds (public commands) to the same proc then that's a problem. You should change them to a different one for each of them. Use something like:
Tcl doesn't operate in a fasion where each file is 100% indepenant of each other.
When the files are read, they go into a single memory buffer, which is read, as if the entire contents where stored in a single files, rather than the seperate ones.
As such, any names that are the same, either overwrite each other (as in your case) or cause an error.
This means that the names of the procedures need adjusting to a unique name (making sure the binds are also changed to unique names).
caesar wrote:If you have all the 3 binds (public commands) to the same proc then that's a problem. You should change them to a different one for each of them. Use something like: