diff options
author | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-30 23:44:02 +0000 |
---|---|---|
committer | Dmitry Kim <dmitry point kim at gmail point com> | 2007-03-30 23:44:02 +0000 |
commit | b11c3c4042b03e36639370002ecf86c44f7ddde4 (patch) | |
tree | 05a35024a2d56c7e3d313317376a17cb7c41a99f /data/rbot/plugins/bash.rb | |
parent | b73d6c7dc6554e1c6eb6abce68350ed2c13191b8 (diff) |
*** (httputil) major rework, new caching implementation, unified request
processing
+ (httputil) post support, partial request support, other features
- (httputil) removed partial_body() and get_cached() [merged into get()]
* (plugins/, utils) minimal changes to accomodate for the new http_utils
* (utils, ircbot) moved utils initialization into utils.rb
* (tube.rb) (partially) accomodate for upstream site layout changes
Diffstat (limited to 'data/rbot/plugins/bash.rb')
-rw-r--r-- | data/rbot/plugins/bash.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rbot/plugins/bash.rb b/data/rbot/plugins/bash.rb index 6f954a16..2a5bedad 100644 --- a/data/rbot/plugins/bash.rb +++ b/data/rbot/plugins/bash.rb @@ -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" |