From: Adeodato Simó Date: Sat, 11 Jul 2009 11:57:55 +0000 (+0200) Subject: Unbreak "bounce-command" hook (was referencing an nonexistent variable) X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=20d3a6cfd601388ed5148d0c0032765cf8ce90c0;p=sup Unbreak "bounce-command" hook (was referencing an nonexistent variable) Signed-off-by: Adeodato Simó --- diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb index 759191e..737f6f1 100644 --- a/lib/sup/modes/thread-view-mode.rb +++ b/lib/sup/modes/thread-view-mode.rb @@ -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(' ')