From: Giuseppe Bilotta Date: Sat, 28 Oct 2006 08:36:50 +0000 (+0000) Subject: Threat works again X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=cdd8cd43c4b26ee0d45aebaf3478e40df3dff37b;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Threat works again --- 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