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 

need help with mirclog.tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Donta
Voice


Joined: 02 Mar 2010
Posts: 5

PostPosted: Tue Mar 02, 2010 11:41 am    Post subject: need help with mirclog.tcl Reply with quote

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
View user's profile Send private message MSN Messenger
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Mar 02, 2010 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Donta
Voice


Joined: 02 Mar 2010
Posts: 5

PostPosted: Tue Mar 02, 2010 12:08 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
rileyil77
Voice


Joined: 10 Sep 2005
Posts: 22
Location: Hamilton, AL

PostPosted: Sun Dec 23, 2012 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Sun Dec 23, 2012 4:31 pm    Post subject: Reply with quote

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

Search for this string in the tcl...
Code:
[time]

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


Joined: 10 Sep 2005
Posts: 22
Location: Hamilton, AL

PostPosted: Mon Dec 24, 2012 12:04 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases 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