X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fthreat.rb;h=bcfc8698cfff7928865f762d78135a05f1398279;hb=76e30fe50d52f22459954f2d93ed3621aaef267d;hp=3784dafeaa80727899cce145e97dbdd5f5dc8602;hpb=676b3fb7fddc8d35b3ae20c59f4a3ddd7b4039c5;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/threat.rb b/data/rbot/plugins/threat.rb index 3784dafe..bcfc8698 100644 --- a/data/rbot/plugins/threat.rb +++ b/data/rbot/plugins/threat.rb @@ -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