]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/urban.rb
factoids plugin: reply when queries match a trigger
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / urban.rb
index 9b547644ad80ea5b6be8bf4e0dcc6ad72f805270..0c7d98387cf8a10b466a7de1a95c172f02b2c01f 100644 (file)
@@ -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