summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-04-14 16:25:45 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-04-14 16:25:45 +0000
commit52f4457cf8aad0de59b7bd83e86b6cab228a45d6 (patch)
treefb72f3f2f47e474fd9adc0574975b854f834a94b
parent1107570cb696e4d9f870da00282233b60b8a00ca (diff)
* (plugins/urban) do not cache "random" lookups
-rw-r--r--data/rbot/plugins/urban.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/rbot/plugins/urban.rb b/data/rbot/plugins/urban.rb
index 9b547644..0c7d9838 100644
--- a/data/rbot/plugins/urban.rb
+++ b/data/rbot/plugins/urban.rb
@@ -10,7 +10,8 @@ class UrbanPlugin < Plugin
if words.empty?
resp = @bot.httputil.head('http://www.urbandictionary.com/random.php',
- :max_redir => -1)
+ :max_redir => -1,
+ :cache => false)
if resp.code == "302" && (loc = resp['location'])
words = URI.unescape(loc.match(/define.php\?term=(.*)$/)[1]) rescue nil
end