ComputerTech Owner
Posts : 99 Points : 268 Reputation : 0 Join date : 2020-04-30
| Subject: Csource crash prevent script 21/5/2020, 22:04 | |
| this is a script to add to your eggdrop config that will prevent it from crashing and give a error on the channel instead of crashing, very handy ps thanks to release_ / ctcp to showing me this - Code:
-
proc csource {filename} { if {[catch {uplevel #0 source $filename} err]} { putlog "\00304Error loading script\003 '$filename': $err" putserv "privmsg #test \00304Error loading script\003 '$filename': $err" return "Loading [file tail $filename]\... error: $err" } if {![string is space $err]} { return "Loading [file tail $filename]\... success: $err" } else { return "Loading [file tail $filename]\... success." } } csource scripts/alltools.tcl csource scripts/action.fix.tcl csource scripts/compat. | |
|