]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/digg.rb
quiz: stop quizzes and timers on cleanup
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / digg.rb
index 775c556934c14ef6c9f3a7f9e769a29d70819e83..dc0ea6c897abaaf0d5d295bc8f51e0cbe963fd9f 100644 (file)
@@ -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