From 5aa8e259191ffc0551dd77b67a77e34c8bd8aa42 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 10 Feb 2009 01:08:00 +0100 Subject: [PATCH] geoip: also read lat/lon coordinates GeoIP tool also offer latitude and longitude, so read them as well. --- data/rbot/plugins/geoip.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.2