| View previous topic :: View next topic |
| Author |
Message |
Donta Voice
Joined: 02 Mar 2010 Posts: 5
|
Posted: Tue Mar 02, 2010 11:41 am Post subject: need help with mirclog.tcl |
|
|
I've installed it on a windows XP machine for Windrop and entered the information to configure it, however when ran it gives error below:
| Code: | | Tcl error [mirc_privmsg]: wrong # args: should be "time command ?count?" |
Would this have anything to do with the path the logs are set to save in? (C:\IRCLOGS)
it looks like this script was written for the linux version of eggdrop because the path was originally set to a /home path. Not sure if this makes a difference.
Any help would be greatly appreciated.
http://www.egghelp.org/cgi-bin/tcl_archive.tcl?mode=download&id=563
Here's my configuration section. its the only thing i altered.
| Code: | set mirc_path "C:\IRCLOGS"
set mirc_stripsign "1"
set mirc_ext ".log"
|
|
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Tue Mar 02, 2010 12:06 pm Post subject: |
|
|
Whilst, as you suggested, the file path variable may not be configured correctly, it is not the cause of the error.
The script calls the core tcl command time but with the wrong number of arguments. I can readily recreate the error below using a public command tcl shell :-
[16:00] <@arfer> % return [time]
[16:00] <@Baal> wrong # args: should be "time command ?count?" _________________ I must have had nothing to do |
|
| Back to top |
|
 |
Donta Voice
Joined: 02 Mar 2010 Posts: 5
|
Posted: Tue Mar 02, 2010 12:08 pm Post subject: |
|
|
Thanks, but i think i'm over complicating things more than needed. All i was after was something to log the chat activity, which i figured out right in the eggdrop.config file. It does what i want and i think i'll just abandon this script all together.
Thanks for the help though and sorry for wasting your time. |
|
| Back to top |
|
 |
rileyil77 Voice

Joined: 10 Sep 2005 Posts: 22 Location: Hamilton, AL
|
Posted: Sun Dec 23, 2012 3:28 pm Post subject: |
|
|
| arfer wrote: | Whilst, as you suggested, the file path variable may not be configured correctly, it is not the cause of the error.
The script calls the core tcl command time but with the wrong number of arguments. I can readily recreate the error below using a public command tcl shell :-
[16:00] <@arfer> % return [time]
[16:00] <@Baal> wrong # args: should be "time command ?count?" |
I, myself am getting the same error with the mirclogs.tcl... Is there a fix to it? Sorry to steal a thread, but I thout it was pointless start a new thread for the same issue. _________________ John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!
http://slasherbbs.com |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Sun Dec 23, 2012 4:31 pm Post subject: |
|
|
The script in question uses the bad command at least 3 times.
Search for this string in the tcl...
and replace it with something like...
| Code: | | [clock format [clock seconds] -format %H:%M:%S] |
In theory, if the rest of that script works, that code should prefix all logged lines with the bot's time in hour:minute:second format.. 20:03:25
Or to prefix each logged line with "Locale specific date and time", use:
| Code: | | [clock format [clock seconds] -format %c] |
would return something like... Sun Dec 23 20:21:21 2012
For other time formatting options, see http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm _________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
. |
|
| Back to top |
|
 |
rileyil77 Voice

Joined: 10 Sep 2005 Posts: 22 Location: Hamilton, AL
|
Posted: Mon Dec 24, 2012 12:04 pm Post subject: |
|
|
Thanks, Spike! That worked perfectly. I ran the mirclog.tcl before and never had the problem. Thanks again. _________________ John Riley
SLASHER BBS ProBoard V2.17 telnet://slasherbbs.com
or look me on Internet Radio!
http://slasherbbs.com |
|
| Back to top |
|
 |
|