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.

darkheart sitebot bw usage

Old posts that have not been replied to for several years.
Locked
r
rev_coil

darkheart sitebot bw usage

Post by rev_coil »

Hi
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

:(
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

It looks as if you have copied and pasted what your windows shows, while editing in pico.

Is the sitebot from the Tcl archive.
r
rev_coil

Post by rev_coil »

well, actually jed, but im not sure what u mean by 'the tcl archive'
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Where di you obtain the Tcl from?
r
rev_coil

Post by rev_coil »

i dl'd it from darkheart.cc but it is an eggdrop tcl script, so i thot i could ask for help here...
are you trying to tell me to get help elsewhere perhaps?
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Hehe no, he's probably asking where you got it from so he can download it and see. You pasted the code totally wrong. Notice how a lot of lines are cut off.. it's pretty much impossible to fix with what you've given us.
r
rev_coil

Post by rev_coil »

my bad ur right...
thanx for the help, but i beleive im gonna use a different script as it turns out
:)
Locked