]> git.cworth.org Git - sup/commitdiff
Unbreak "bounce-command" hook (was referencing an nonexistent variable)
authorAdeodato Simó <dato@net.com.org.es>
Sat, 11 Jul 2009 11:57:55 +0000 (13:57 +0200)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Mon, 27 Jul 2009 16:29:44 +0000 (12:29 -0400)
Signed-off-by: Adeodato Simó <dato@net.com.org.es>
lib/sup/modes/thread-view-mode.rb

index 759191ea5c2466865dfc162690e72d3878498b9c..737f6f1ff309a5bd87ebdeb1d213c77c88b86bc2 100644 (file)
@@ -204,7 +204,7 @@ EOS
       end
     end
 
-    cmd = case HookManager.run "bounce-command", :from => m.from, :to => to
+    cmd = case (hookcmd = HookManager.run "bounce-command", :from => m.from, :to => to)
           when nil, /^$/ then defcmd
           else hookcmd
           end + ' ' + to.map { |t| t.email }.join(' ')