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 

chatstat error when generating htm

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


Joined: 04 Jan 2005
Posts: 6

PostPosted: Sun Apr 13, 2008 9:50 am    Post subject: chatstat error when generating htm Reply with quote

hi

I am loading the script ChatStats 3.1.2 by Baerchen, February 2002 for eggdrop 1.4.5+ & TCL 8.3.

Everything works fine but not when I do .update and will not make new htm pages anymore. I get the following error :

[15:30] Tcl error in script for 'timer1636983':
[15:30] wrong # args: should be "topic nick host hand chan text"

what could be wrong?

the proc is:
proc cs:update {h idx a} {
global cs
set c [string tolower $a]; set l ""
foreach e [binds cs:count] {
regexp {#.*?\s} $e e
set e [string trim $e]
cs:cv $e
if {$cs(update)} {
if {![validchan $e] || ![botonchan $e]} {putdcc $idx "I'm not on $e."; continue}
lappend l $e
}
}
if {[llength $l] == 0} {putdcc $idx "No channel is configured to have webpages."; return} else {set l [lsort $l]}
if {$c == ""} {
foreach e $l {
cs:cv $e
foreach el [timers] {if {[string match "*cs:html $e*" $el]} {killtimer [lindex $el 2]}}
set cs(manual) "$idx Successfully updated webpages for $e"
cs:html $e
}
} else {
cs:cv $c
if {![validchan $c] || ![botonchan $c]} {putdcc $idx "I'm not on $c."; return}
if {[lsearch $l $c] == -1} {putdcc $idx "CHATstats is not enabled in $c"; return}
if {$cs(update)} {
foreach e [timers] {
if {[string match "*cs:html $c*" $e]} {killtimer [lindex $e 2]}
}
set cs(manual) "$idx Successfully updated webpages for $c"; cs:html $c
} else {putdcc $idx "Configuration does not allow webpages for $c"}
}
}

plz someone help
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 -> 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