]> git.cworth.org Git - sup/blobdiff - lib/sup/modes/thread-view-mode.rb
Unbreak "bounce-command" hook (was referencing an nonexistent variable)
[sup] / 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(' ')