Scripterrors

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
source scripts/thescript.tcl
source scripts/thescript.tcl
|newtext=
|newtext=
-
if {[catch {source scripts/thescript.tcl} err]} {
+
if {[catch "source scripts/thescript.tcl" err]} {
putlog "Error while loading thescript.tcl: $err"
putlog "Error while loading thescript.tcl: $err"
} else {
} else {

Revision as of 23:11, 27 June 2010

Do this for every bogus script:

Open the eggdrop.conf file in your editor.

Search for

source scripts/thescript.tcl

and replace it with

if {[catch "source scripts/thescript.tcl" err]} {
putlog "Error while loading thescript.tcl: $err"
} else {
putlog "thescript.tcl loaded without errors"
}
Personal tools