I just set up darkheart's sitebot for glftpd and am trying to get it to report on the bw usage
The tcl is supposed to support it, but i keep getting errors for my eggy...:
' Tcl error [pub_bwusage]: syntax error in expression "0 = - " '
I know zero about tcl, and am hoping someone can help with this...here's the part of the script that covers that command:
#USAGE
if $enabled(stats_usage) {
bind pub - ${prefix}bw pub_bwusage
bind pub - ${prefix}usage pub_bwusage
proc pub_bwusage {nick host handle chan text} { global sitein glbindir ma$
set result [sitebot:bw]
set now [clock format [clock seconds] -format "%H:%M"]
if {$result == 0} {putchan $chan "\[$sitein\] bandwidth function $
set count -1
foreach value $echovars(BW) {
set count [expr $count + 1]
set procvalue($value) [lindex $result $count]
}
set put "$mask(BW)"
if {[string match "*%sitein*" $put]} {set put [str $put %sitein $sitein$
if {[string match "*%sitename*" $put]} {set put [str $put %sitename $si$
if {[string match "*%now*" $put]} {set put [str $put %now $now]}
foreach value $echovars(BW) {
set myoutput $procvalue($value)
if {[string match "*%$value*" $put]} {set put [str $put %$value $myou$
}
if {[string match "*;*" $put]} {
foreach line [split $put ";"] {
putchan $chan $line
}
} {
putchan $chan $put
}
}
}
Any help anyone can offer is most greatly appreciated! tyia
