| View previous topic :: View next topic |
| Author |
Message |
incubus Voice
Joined: 26 Aug 2005 Posts: 2
|
Posted: Fri Aug 26, 2005 9:42 am Post subject: clock error with tcl 8.5a3 |
|
|
i need for my script the new clock command from tcl 8.5, so i dl tcl8.5.a3 and installed it (eggdrop reconfig and reinstalled too, successfully linked with new tcl).
my eggy always keep saying that clock is an invalid command. but in tclsh i can use it with no error. i also tried to load clock.tcl (shipped with tcl8.5a3) with my eggdrop but it keeps saying, clock is invalid.
does someone knows a solution for this or perhaps a function to compare 2 dates and tell which one is "older"? |
|
| Back to top |
|
 |
greenbear Owner
Joined: 24 Sep 2001 Posts: 733 Location: Norway
|
Posted: Fri Aug 26, 2005 11:29 am Post subject: |
|
|
Make sure the eggdrop isnt using the older version of tcl, a .status on partyline should say.
The easiest way of finding th older date is to convert them both into unixtime (clock scan) and see which one is smaller. |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Fri Aug 26, 2005 1:37 pm Post subject: |
|
|
| also, if you really need your bot to use the newly installed Tcl, you must recompile the bot, making sure it links against the new library (use configure switches or TCLINC/TCLLIB environment variables) |
|
| Back to top |
|
 |
incubus Voice
Joined: 26 Aug 2005 Posts: 2
|
Posted: Sat Aug 27, 2005 9:37 am Post subject: |
|
|
as i wrote, the eggdrop is linked with the new tcl. .status says:
Tcl library: /tcl8.5a3/library
Tcl version: 8.5a3 (header version 8.5a3)
| Quote: |
The easiest way of finding th older date is to convert them both into unixtime (clock scan) and see which one is smaller.
|
this was my idea too but the clock command isnt working. also i cant use the .tcl in partyline. it says "what? you need `.help`"
edit:
i fixed my .tcl error... unbind tcl was still active |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Sat Aug 27, 2005 2:08 pm Post subject: |
|
|
| you are probably trying to use [clock] erroneously; post a log |
|
| Back to top |
|
 |
|