summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorRaine Virta <rane@kapsi.fi>2008-08-13 16:31:49 +0300
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-13 16:09:51 +0200
commit9340ab24696230a7f5debecf272b44ad91886b9c (patch)
tree777ec12a31921adca969d0d6b36016cbf73084f6 /data
parent6099c7c358e3fdd6ff5299e280dc72688b3204b9 (diff)
geoip plugin: fixed host regex
Diffstat (limited to 'data')
-rwxr-xr-xdata/rbot/plugins/geoip.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/geoip.rb b/data/rbot/plugins/geoip.rb
index 5f52d04b..7b03e7e5 100755
--- a/data/rbot/plugins/geoip.rb
+++ b/data/rbot/plugins/geoip.rb
@@ -14,7 +14,7 @@ module GeoIP
GEO_IP_PRIMARY = "http://lakka.kapsi.fi:40086/lookup.yaml?host="
GEO_IP_SECONDARY = "http://www.geoiptool.com/en/?IP="
- HOST_NAME_REGEX = /[a-z0-9\-]+(?:\.[a-z0-9\-]+)*\.[a-z]{2,4}/i
+ HOST_NAME_REGEX = /^[a-z0-9\-]+(?:\.[a-z0-9\-]+)*\.[a-z]{2,4}/i
REGEX = {
:country => %r{Country:.*?<a href=".*?" target="_blank"> (.*?)</a>}m,