Code: Select all
bind dcc - test do_the_test
proc do_the_test {hand idx arg} {
if {[llength [timers]] < 1} { putdcc $idx "No timers active"; return 0 }
foreach b [timers] {
putdcc $idx "$b"
}
}
Code: Select all
rename timer _timer
rename utimer _utimer
proc timer {time cmd} {
_timer $time [list debug_timer t $cmd]
}
proc utimer {time cmd} {
_utimer $time [list debug_timer u $cmd]
}
proc debug_timer {t cmd} {
if {[catch $cmd a]} {
if {$t = "t"} {
putlog "Timer error: [lindex $cmd 0] : $a"
} else {
putlog "Utimer error: [lindex $cmd 0] : $a"
}
}
}
THis is not true, and it is caused by my own handy work.Papillon wrote:"$t = "t"" <--- it has a " extra, make it "$t = "t" and it should work
and change it toif {$t = "t"} {
This will fix the error int his script. It should now display the correct error message you need.if {$t == "t"} {