X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fdigg.rb;h=dc0ea6c897abaaf0d5d295bc8f51e0cbe963fd9f;hb=052217de30c59206d7025b582d4604557a747470;hp=775c556934c14ef6c9f3a7f9e769a29d70819e83;hpb=3c7811f959988c7e7d10a730f8309f48b766fc6b;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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