X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fthreat.rb;h=dacd10584dd839ff545b8820dc01e6dc4627aa34;hb=0f277c32dd269937fbbe6427b416214ae70c70e2;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..dacd1058 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("http://www.dhs.gov/index.shtm") if page =~ /\"Current National Threat Level is (.*?)\"/ state = $1