summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-08-26 17:40:37 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-08-26 17:40:37 +0200
commitced6a64d1fac95af45be5a33213e278934d3f84d (patch)
tree6750f0a9b84a12a27a5820c677404f465ea4780b /data/rbot
parent3c7811f959988c7e7d10a730f8309f48b766fc6b (diff)
digg: cleanup whitespace in title
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/digg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/digg.rb b/data/rbot/plugins/digg.rb
index 775c5569..dc0ea6c8 100644
--- a/data/rbot/plugins/digg.rb
+++ b/data/rbot/plugins/digg.rb
@@ -32,7 +32,7 @@ class DiggPlugin < Plugin
max = 8 if max > 8
matches = Array.new
doc.elements.each("rss/channel/item") {|e|
- matches << [ e.elements["title"].text,
+ matches << [ e.elements["title"].text.strip,
Time.parse(e.elements["pubDate"].text).strftime('%a @ %I:%M%p') ]
done += 1
break if done >= max