Permalink
Browse files

Fixed a host issue when banning someone. Bumped version to 3.3.2.

- Fixed an issue using "host" when adding a ban for a user that only have a
  reverse but no A-record in DNS, this caused the ban to fail, ripecheck now always use ip.
  • Loading branch information...
1 parent 6e8b9f2 commit b4171f571464f4f737ac1fc03a549871b342afdd @Ratler committed Sep 11, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 ripecheck.tcl
View
@@ -1,5 +1,5 @@
#
-# ripecheck.tcl Version: 3.3.1 Author: Stefan Wold <ratler@stderr.eu>
+# ripecheck.tcl Version: 3.3.2 Author: Stefan Wold <ratler@stderr.eu>
###
# Info:
# This script check unresolved ip addresses against a RIPE database
@@ -206,7 +206,7 @@ bind pub -|- !ripegeo ::ripecheck::pubRipeGeo
namespace eval ::ripecheck {
# Global variables
- variable version "3.3.1"
+ variable version "3.3.2"
variable ipinfodb "http://ipinfodb.com/ip_query.php?ip="
variable maskarray
@@ -390,7 +390,7 @@ namespace eval ::ripecheck {
putlog "ripecheck: Matched country $country \[$ripe\] banning $nick!$orghost on $channel for $bantime minute(s)"
if {![::ripecheck::isConfigEnabled logmode]} {
::ripecheck::incrBanCount $channel
- newchanban $channel "*!*@$host" ripecheck $banreason $bantime
+ newchanban $channel "*!*@$ip" ripecheck $banreason $bantime
}
}
}

0 comments on commit b4171f5

Please sign in to comment.