This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

need help with mirclog.tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
D
Donta
Voice
Posts: 5
Joined: Tue Mar 02, 2010 11:28 am

need help with mirclog.tcl

Post by Donta »

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: Select all

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_arch ... oad&id=563

Here's my configuration section. its the only thing i altered.

Code: Select all

set mirc_path "C:\IRCLOGS"
set mirc_stripsign "1"
set mirc_ext ".log"
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

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
D
Donta
Voice
Posts: 5
Joined: Tue Mar 02, 2010 11:28 am

Post by Donta »

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.
User avatar
rileyil77
Voice
Posts: 22
Joined: Sat Sep 10, 2005 2:30 pm
Location: Hamilton, AL
Contact:

Post by rileyil77 »

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.22 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

The script in question uses the bad command at least 3 times.

Search for this string in the tcl...

Code: Select all

[time]
and replace it with something like...

Code: Select all

[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: Select all

[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
.
User avatar
rileyil77
Voice
Posts: 22
Joined: Sat Sep 10, 2005 2:30 pm
Location: Hamilton, AL
Contact:

Post by rileyil77 »

Thanks, Spike! That worked perfectly. I ran the mirclog.tcl before and never had the problem. Thanks again.
John Riley
SLASHER BBS ProBoard V2.22 telnet://slasherbbs.com
or look me on Internet Radio!

http://slasherbbs.com
Post Reply