Table of Contents
For better integration with savIRC, your script should utilize and use savIRC's variables. For instance, it would be much more considerate to the user of your script to use the colors that they set when configuring savIRC. Not only is it considerate, it also doesn't make your script look like a tacked-on add-on.
This might be a little confusing to the new scripter, so I want to clarify this. In savIRC, there are functions. But, in tcl they are called procedures or proc's for short. They are one and the same. So what does this mean? Nothing really, except that when you see the word Functions in regard to savIRC, it means its a procedure in Tcl code. Now to make it even more confusing. A procedure can act as an alias. For example:
proc test {} {
echo This is just a test
}
Put this code into your functions.tcl file, then type /test at the command line. You should see something like this in your active window:
This is just a test