]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/digg.rb
bans plugin: fix badword regular expression creation
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / digg.rb
index e125d3c46b1becb99032aad3fa653eae0ad5f101..8e3aeb4e01e4ed279bd629596dfa6a8cf4608793 100644 (file)
@@ -12,8 +12,8 @@ class DiggPlugin < Plugin
   
   def digg(m, params)
     max = params[:limit].to_i
-    puts "max is #{max}"
-    xml = @bot.httputil.get(URI.parse("http://digg.com/rss/index.xml"))
+    debug "max is #{max}"
+    xml = @bot.httputil.get_cached(URI.parse("http://digg.com/rss/index.xml"))
     unless xml
       m.reply "digg news parse failed"
       return