This doesnt appear to work for me so im confused i tried to do it on a bind time basis and nothing also did it on a trigger and that didnt work either.
bind pub - !clear clear
proc clear {} {
global db
set f [open $db w]
close $f
}
Actually the above code just give an error when i try
Tcl error [clear]: wrong # args: should be "clear"
but as i say ive also tried to do it on a time basis
I tried to add things like
proc clear { nick uhost handle chan arg } {
but still gave simmilar arror to above. so any help appreciated.
Since clear is triggered by a time-bind, it should take "minute hour day month year" (the names do not matter) as its parameters. You can just use "args" since you're not going to use any of the proc's parameters.