Subject: [sup-talk] [PATCH] Add a startup hook.

From: [email-masked] (Nicolas Pouillard)
Date: Tue, 19 Feb 2008 11:17:59 +0100

---
 bin/sup |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/bin/sup b/bin/sup
index 0a35fd7..0d34215 100644
--- a/bin/sup
+++ b/bin/sup
@@ -39,6 +39,12 @@ EOS
   opt :compose, "Compose message to this recipient upon startup", :type => String
 end
 
+Redwood::HookManager.register "startup", <<EOS
+Executes at startup
+No variables.
+No return value.
+EOS
+
 if $opts[:list_hooks]
   Redwood::HookManager.print_hooks
   exit
@@ -128,6 +134,8 @@ begin
     Index.add_source SentManager.new_source
   end
 
+  HookManager.run "startup"
+
   log "starting curses"
   start_cursing
 
-- 
1.5.3.1.109.gacd69

---

From: [email-masked] (William Morgan)
Date: Tue, 19 Feb 2008 18:55:12 -0800

Merged into next. Thanks!

-- 
William <wmorgan-sup at masanjin.net>