Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (21 sloc) 0.928 kb
diff --git a/lib/plugins/defaults/stdout.rb b/lib/plugins/defaults/stdout.rb
index a7ef862..26e1f6f 100755
--- a/lib/plugins/defaults/stdout.rb
+++ b/lib/plugins/defaults/stdout.rb
@@ -116,12 +116,19 @@ module Termtter
end
time = "#{Time.parse(s.created_at).strftime(time_format)}"
+ time = Client.get_hooks(:prepare_time).inject(time){|result, hook| hook.call(result, event)}
+
source =
case s.source
when />(.*?)</ then $1
when 'web' then 'web'
end
+ source = Client.get_hooks(:prepare_source).inject(source){|result, hook| hook.call(result, event)}
+ screen_name = Client.get_hooks(:prepare_screenname).inject(s.user.screen_name){|result, hook|
+ hook.call(result, event)
+ }
+
erbed_text = ERB.new(config.plugins.stdout.timeline_format).result(binding)
indent_text = indent > 0 ? "#{' ' * (indent - 1)} ┗ " : ''
Jump to Line
Something went wrong with that request. Please try again.