This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Help for those learning Tcl or writing their own scripts.
-
c0re
- Voice
- Posts: 16
- Joined: Sun Jan 18, 2009 4:45 pm
Post
by c0re »
hello, i have an script its check for error before rehash.
Code: Select all
proc proc_rehash { nick uhost hand chan arg } {
set the_name [lindex [split $arg] 0]
if {[catch {uplevel #0 [list source scripts/$the_name.tcl]} error]} {
putquick "PRIVMSG $chan :Error While Loading $the_name -- Errormsg: $error"
putquick "PRIVMSG $chan :script: $the_name -- ::errorInfo: $::errorInfo"
return
}
rehash
putquick "PRIVMSG $chan :script: <$the_name> -- Loaded Without Error.."
}
i want it to check for error then write it to scripts.tcl before .rehash
thanks
sorry for my english.