Hi,
everytime i do .save in a partyline, i see the following
Tcl error in script for 'timer36816':
<eggy> [00:35] extra characters after close-quote, any help please?
Also i was working on stats for users, are known to the bot, like Ops.. but i try my best, couldn't figure out , why its not working, may be any expert can help me, please.
## THE VERSION OF THIS WEBWRITER
set wwver 1.0
set updatetimer 60
set wwpath "/home/aw/public_html"
set statchans "#testing"
proc write_status {} {
global statchans
foreach chan $statchans {ww_next $chan}
}
## THE MAIN PROC
proc ww_next {statchan} {
global wwver updatetimer botnick wwpath
if {$wwpath == ""} {set wf [open status_[string trim $statchan #].htm w]} else {set wf [open $wwpath/status_$statchan.htm w]}
puts $wf "<HTML>"
put $wf "<body bgcolor="#EEEEEE" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">"
put $wf "<table border="0" width="100%">"
puts $wf "<BR><BR>Recorded users:"
puts $wf "<BR>"
foreach u [userlist -b+ovf|ovf $statchan] {
if {![onchan [hand2nick $u $statchan] $statchan]} {
set ss [getuser $u LASTON]
if {$ss == 0} {set ss -} {set ss [ntime $ss]}
set e [getuser $u XTRA EMAIL]
if {$e == ""} {set e -}
set a [chattr $u $statchan]
put $wf "<tr>"
put $wf " <td><img src="../images/spacer.gif" width="20" height="1"></td>"
put $wf " <td colspan="2">"
put $wf " <p class="head2">"
put $wf " $u </p>"
put $wf " </td>"
put $wf " </tr>"
put $wf " <tr>"
put $wf " <td valign="top"> </td>"
put $wf " <td valign="top">"
put $wf " <p><b>Attr:</b></p>"
put $wf " </td>"
put $wf " <td>"
put $wf " <p>"
put $wf " $a </p>"
put $wf " </td>"
put $wf " </tr>"
put $wf " <tr>"
put $wf " <td valign="top"> </td>"
put $wf " <td valign="top">
put $wf " <p><b>Laston:</b></p>"
put $wf " </td>"
put $wf " <td>"
put $wf " <p class="description">"
put $wf " $ss </p>"
put $wf " </td>"
put $wf " </tr>"
put $wf " <tr>"
put $wf " <td> </td>"
put $wf " <td>"
put $wf " <p> </p>"
put $wf " </td>"
put $wf " <td>"
put $wf " <p> </p>"
put $wf " </td>"
put $wf " </tr>"
}
}
puts $wf "</table></HTML>"
close $wf
if {![texists write_status]} {utimer $updatetimer write_status}
}
## REMOVES THE YEAR FORMAT FROM THE DATE/TIME
proc ntime {time} {
set v0 [lrange [ctime $time] 0 0]
set v1 [lrange [ctime $time] 1 1]
set v2 [lrange [ctime $time] 2 2]
set v3 [lrange [ctime $time] 3 3]
set v4 [lrange [ctime $time] 4 4]
set v3 [lindex [split $v3 :] 0]:[lindex [split $v3 :] 1]
return "$v0 $v1. $v2. ($v3)"
}
# THIS CHECKS I THERE IS ALREADY A TIMER ASSIGNED TO UPDATE THE WEB FILE
# !!! not similar to the timerexist-proc in all_tools.tcl !!!
proc texists {utimer_proc} {
set y "0"
foreach x [utimers] {
if {[string match [lindex $x 1] $utimer_proc]} {set y "1"}
}
return $y
}
# STARTS THE UPDATE TIMER
if {![texists write_status]} {utimer $updatetimer write_status}
putlog "WW $wwver by aw loaded.."
I will apprecite for your kind help
thanks
regards
Aw