Skip to content

Commit

Permalink
improve opinion plugin
Browse files Browse the repository at this point in the history
Signed-off-by: David A. Cuadrado <krawek@gmail.com>
  • Loading branch information
dcu committed Feb 10, 2011
1 parent 5b9c0d8 commit fadc580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/opinion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def execute(m, text)
if results
twit = results.choice
if twit
source = shorten_url("http://twitter.com/#{twit["from_user"]}")
source = "http://twitter.com/#{twit["from_user"]}"
text = twit["text"]
t =Time.zone.parse(twit["created_at"])
m.reply "#{m.user.nick}: #{CGI.unescapeHTML(text)} (via #{source} #{t.ago_in_words})"
Expand Down

0 comments on commit fadc580

Please sign in to comment.