| View previous topic :: View next topic |
| Author |
Message |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Nov 21, 2009 7:39 pm Post subject: [discussion] invalid command name "clock" |
|
|
I've recently upgrade my eggdrops to latest cvs release, and not had any problems with them (in fact they're alot better ) but i found 2 of them have started getting this error | Quote: | [23:31:35] <me> .set errorInfo
[23:31:35] <eggie> [00:31] #me# set errorInfo
[23:31:35] <eggie> Currently: invalid command name "clock"
[23:31:35] <eggie> Currently: while executing
[23:31:35] <eggie> Currently: "clock seconds"
...
[23:31:35] <eggie> Currently: "pub:ban $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"
[23:31:45] <me> .tcl clock seconds
[23:31:45] <eggie> Tcl error: invalid command name "clock"
[23:32:22] <me> .tcl info tclversion
[23:32:22] <eggie> Tcl: 8.5 | Now, clock is a valid tcl command, and i've seen it mentioned in an other post http://forum.egghelp.org/viewtopic.php?p=90566#90566 anyone got any information or insight in to this? I had a browse of some of the pages google came up with.
P.S i have "solved" (removed the use clock from the script) this, but would like more information on this! thats why its not in the other forums x _________________ TCL the misunderstood |
|
| Back to top |
|
 |
chasba Voice
Joined: 10 Jan 2008 Posts: 6
|
Posted: Tue Nov 24, 2009 8:52 am Post subject: |
|
|
Hi,
I am also seeing this problem in several of MC_8's scripts. The Egg is running 1.6.19+ctcpfix with TCL 8.5.8
May I ask if you just removed clock from the scripts or did you replace it with something else?
For example, with
| Code: | | "[list [list [clock seconds] $command $args]] $::lastCommand" |
How would you resolve this? |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Tue Nov 24, 2009 10:24 am Post subject: |
|
|
The clock command was recently made an ensemble. It is set up from init.tcl, so if you messed up your tcl installation (by e.g. loading some old init.tcl), it won't work. Fix: Don't mess up the installation  _________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
|