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.

chatstat error when generating htm

Support & discussion of released scripts, and announcements of new releases.
Post Reply
o
offndr
Voice
Posts: 6
Joined: Tue Jan 04, 2005 6:53 pm

chatstat error when generating htm

Post by offndr »

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
Post Reply