Folks, before asking for help with Tcl errors in your or other people's scripts, please make sure you've done the following:
- have your .tcl and .set commands enabled, meaning that you need to open your config and comment out (or remove) the following lines:
unbind dcc n tcl *dcc:tcl
unbind dcc n set *dcc:set
then save config and restart the bot - have full backtrace of the error; that means upon receiving Tcl error (you must be logged in), immediately type .set errorInfo and save the output
- if the bot replies with `What? You need .help', you need to enable command .set (see above)
- when posting code, use code tag, not quote; the code should be indented nicely, making it easier to read and understand, for example use:
and not:
Code: Select all
foreach foo $bar { if {$foo == "moo"} { #do something } }
Code: Select all
foreach foo $bar { if {$foo == "moo"} { #do something } }
- when testing a script, try to run that script only, get rid temporarily of all others, commenting them out in the config (don't forget to restart); it helps in narrowing the possible causes for problems, since there are no other scripts to possibly interfere with the script you are testing