diff options
author | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
---|---|---|
committer | Raine Virta <rane@kapsi.fi> | 2009-02-19 16:26:34 +0200 |
commit | 783ffa4235330029d661752b1023db635b26f2b3 (patch) | |
tree | e60c7a89e7053120b33810230401f5490a3cb697 /data/rbot/plugins/bash.rb | |
parent | ff452ad1bf111025f0661274ac7fb8b2f769a293 (diff) |
remove whitespace
Diffstat (limited to 'data/rbot/plugins/bash.rb')
-rw-r--r-- | data/rbot/plugins/bash.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index 16028356..8dac9671 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -172,7 +172,7 @@ class BashPlugin < Plugin xml = @bot.httputil.get("http://bash.org/xml/?random&num=1", :cache => false) else xml = @bot.httputil.get("http://bash.org/xml/?" + id + "&num=1") - end + end unless xml m.reply "bash.org rss parse failed" @@ -184,7 +184,7 @@ class BashPlugin < Plugin return end doc.elements.each("*/item") {|e| - if(id != 0) + if(id != 0) reply = e.elements["title"].text.gsub(/QDB: /,"") + " " + e.elements["link"].text.gsub(/QDB: /,"") + "\n" reply = reply + e.elements["description"].text.gsub(/\<br \/\>/, "\n") else |