TCLDROP
Would you like to react to this message? Create an account in a few clicks or log in to continue.
TCLDROP

Eggdrop And TCL Help, Support And Chat
 
HomeHome  PublicationsPublications  FAQFAQ  SearchSearch  MemberlistMemberlist  Latest imagesLatest images  UsergroupsUsergroups  RegisterRegister  Log in  CalendarCalendar  WebsiteWebsite  ChatRoomChatRoom  

 

 Csource crash prevent script

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


Posts : 99
Points : 268
Reputation : 0
Join date : 2020-04-30

Csource crash prevent script Empty
PostSubject: Csource crash prevent script   Csource crash prevent script Empty21/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 Very Happy

ps thanks to release_ / ctcp to showing me this Very Happy



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.
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
Csource crash prevent script
Back to top 
Page 1 of 1
 Similar topics
-
» say script
» Timer Script
» Need ClearBan script
» Match script
» Auto Reply Script

Permissions in this forum:You cannot reply to topics in this forum
TCLDROP :: Other :: Code-
Jump to: