Is there any way to test a script (that it wont crash the egg etc) ?
Atm I'm editing script, rehashing eggdrop, editing again, etc etc..
This works, but I feel its a waste of time, re-starting the eggdrop every time it crash...... huh..?
Code: Select all
catch {
#code here
}
Code: Select all
# # # # # # # # #
# .loadtcl
#
bind dcc n loadtcl loadtcl
proc loadtcl {hand idx args} {
if {$args == {{}}} {
set args $::lasttclloaded
} else {
set ::lasttclloaded $args
}
uplevel #0 [list source scripts/$args.tcl]
return 1
}