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.

!rehash/!load <script name>

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
c
c0re
Voice
Posts: 16
Joined: Sun Jan 18, 2009 4:45 pm

!rehash/!load <script name>

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 very end of eggdrop.conf before .rehash

thanks
sorry for my english.
Post Reply