From d639106dad97f0b3322e94e5ba3fee5b40f68fed Mon Sep 17 00:00:00 2001 From: Grant Hollingworth Date: Thu, 17 Jan 2008 12:49:21 -0500 Subject: [PATCH] renamed "quoteline" hook to "attribution" --- lib/sup/modes/reply-mode.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb index 2d05f15..3b8c920 100644 --- a/lib/sup/modes/reply-mode.rb +++ b/lib/sup/modes/reply-mode.rb @@ -10,10 +10,11 @@ class ReplyMode < EditMessageMode :user => "Customized" } - HookManager.register "quoteline", < m) || default_quoteline(m) - lines = quoteline.split("\n") + m.quotable_body_lines.map { |l| "> #{l}" } + attribution = HookManager.run("attribution", :message => m) || default_attribution(m) + lines = attribution.split("\n") + m.quotable_body_lines.map { |l| "> #{l}" } lines.pop while lines.last =~ /^\s*$/ lines end - def default_quoteline m + def default_attribution m "Excerpts from #{@m.from.name}'s message of #{@m.date}:" end -- 2.45.2