From: Giuseppe Bilotta Date: Tue, 10 Feb 2009 00:08:00 +0000 (+0100) Subject: geoip: also read lat/lon coordinates X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=5aa8e259191ffc0551dd77b67a77e34c8bd8aa42;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git geoip: also read lat/lon coordinates GeoIP tool also offer latitude and longitude, so read them as well. --- diff --git a/data/rbot/plugins/geoip.rb b/data/rbot/plugins/geoip.rb index 96dcf9d2..6cf0d993 100755 --- a/data/rbot/plugins/geoip.rb +++ b/data/rbot/plugins/geoip.rb @@ -19,7 +19,9 @@ module GeoIP REGEX = { :country => %r{Country:.*? (.*?)}m, :region => %r{Region:.*?(.*?)}m, - :city => %r{City:.*?(.*?)}m + :city => %r{City:.*?(.*?)}m, + :lat => %r{Latitude:.*?(.*?)}m, + :lon => %r{Longitude:.*?(.*?)}m } def self.valid_host?(hostname)