egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[discussion] invalid command name "clock"

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Nov 21, 2009 7:39 pm    Post subject: [discussion] invalid command name "clock" Reply with quote

I've recently upgrade my eggdrops to latest cvs release, and not had any problems with them (in fact they're alot better Razz) 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
View user's profile Send private message Send e-mail
chasba
Voice


Joined: 10 Jan 2008
Posts: 6

PostPosted: Tue Nov 24, 2009 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Tue Nov 24, 2009 10:24 am    Post subject: Reply with quote

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 Wink
_________________
Have you ever read "The Manual"?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber