diff options
-rw-r--r-- | data/rbot/plugins/urban.rb | 3 |
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 |