From Eggdrop Wiki

Revision as of 10:44, 14 January 2018 by Thommey (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

To avoid Eggdrop crashing when an error in a scriptfile occurs: Do this for every script that might raise errors while loading it:

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"

Or for all scripts:

set scripts {
foreach script $scripts {
    if {[catch {source $script} err]} {
        putlog "Error while loading $script: $err"
    } else {
        putlog "$script loaded without errors"
Personal tools