diff options
-rwxr-xr-x | data/rbot/plugins/geoip.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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:.*?<a href=".*?" target="_blank"> (.*?)</a>}m, :region => %r{Region:.*?<a href=".*?" target="_blank">(.*?)</a>}m, - :city => %r{City:.*?<td align="left" class="arial_bold">(.*?)</td>}m + :city => %r{City:.*?<td align="left" class="arial_bold">(.*?)</td>}m, + :lat => %r{Latitude:.*?<td align="left" class="arial_bold">(.*?)</td>}m, + :lon => %r{Longitude:.*?<td align="left" class="arial_bold">(.*?)</td>}m } def self.valid_host?(hostname) |