]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/bash.rb
fix "warning: don't put space before argument parentheses"
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / bash.rb
index 6f954a16044384281c3a93f5491c4546d0fcec7d..2a5bedad8520f3dca32125a7c2cb9ab9d2fe25a9 100644 (file)
@@ -25,11 +25,12 @@ class BashPlugin < Plugin
   def bash(m, id=0)
 
        if(id != 0)
-       xml = @bot.httputil.get URI.parse("http://bash.org/xml/?" + id + "&num=1")
+       xml = @bot.httputil.get("http://bash.org/xml/?" + id + "&num=1")
        elsif(id == "latest")
-       xml = @bot.httputil.get URI.parse("http://bash.org/xml/?latest&num=1")
+       xml = @bot.httputil.get("http://bash.org/xml/?latest&num=1")
        else
-       xml = @bot.httputil.get URI.parse("http://bash.org/xml/?random&num=1")
+       xml = @bot.httputil.get("http://bash.org/xml/?random&num=1",
+                                :cache => false)
        end     
     unless xml
       m.reply "bash.org rss parse failed"