]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Threat works again
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 28 Oct 2006 08:36:50 +0000 (08:36 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 28 Oct 2006 08:36:50 +0000 (08:36 +0000)
data/rbot/plugins/threat.rb

index 3784dafeaa80727899cce145e97dbdd5f5dc8602..bcfc8698cfff7928865f762d78135a05f1398279 100644 (file)
@@ -24,7 +24,7 @@ class ThreatPlugin < Plugin
     green = "\x0303" # low
     black = "\x0301" # default
 
-    page = @bot.httputil.get URI.parse("http://www.dhs.gov/")
+    page = @bot.httputil.get_cached("http://www.dhs.gov/index.shtm")
 
     if page =~ /\"Current National Threat Level is (.*?)\"/
       state = $1