Skip to content

Commit

Permalink
Removed duplicate debug info. Updated help and feature texts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ratler committed Feb 21, 2011
1 parent 7644568 commit f1e7abd
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ripecheck.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# * Ripecheck now support using GeoIP as primary ban method, if GeoIP fail ripecheck
# will automatically fall back using whois
# * !ripetld <tld>, !ripescan [channel] and !ripehelp
# * Support for two GeoIP backends, geotool and ipinfodb. Defaults to geotool.
###
# Information regarding ipinfodb.com usage:
#
Expand Down Expand Up @@ -294,13 +295,7 @@ namespace eval ::ripecheck {

# First we try geoIP if enabled
if {[::ripecheck::isConfigEnabled geoban]} {
if {![info exists ::ripecheck::config(geobackend)]} {
set backend "Geotool"
} else {
set backend $::ripecheck::config(geobackend)
}

::ripecheck::debug "Geoban enabled, using backend '$backend'"
::ripecheck::debug "Geoban enabled"

set geoData [::ripecheck::getGeoData $ip "country"]

Expand Down Expand Up @@ -524,7 +519,7 @@ namespace eval ::ripecheck {
set backend $::ripecheck::config(geobackend)
}

::ripecheck::debug "getGeoData() - Using geo backend $backend"
::ripecheck::debug "getGeoData() - Using '$backend' backend"

if {$backend == "ipinfodb"} {
return [::ripecheck::getIpinfodbData $ip]
Expand Down Expand Up @@ -1250,6 +1245,7 @@ namespace eval ::ripecheck {
# Check option type
if {[lsearch -exact $allowed_str_opts $option] != -1} {
if {$option == "geobackend" && $value != ""} {
set value [string tolower $value]
if {$value == "geotool" || $value == "ipinfodb"} {
set ::ripecheck::config($option) $value
putdcc $idx "\002RIPECHECK\002: Option '$option' set with the value '$value'"
Expand Down Expand Up @@ -1494,7 +1490,7 @@ namespace eval ::stderreu {
putidx $idx " msgcmds \[on|off\] : Enable or disable commands through private message"
putidx $idx " geoban \[on|off\] : Enable or disable GeoIP data as primary method of banning, whois will be used"
putidx $idx " as fallback"
putidx $idx " geobackend \[string\] : Set preferred geodata backend, supported backends are geotool and ipinfodb."
putidx $idx " geobackend \[string\] : Set preferred GeoIP backend, supported backends are geotool and ipinfodb."
putidx $idx " Default is geotool."
putidx $idx " logmode \[on|off\] : Enable or disable log only mode, this will disable channel bans and kick counter."
putidx $idx " fallback \[on|off\] : This function will _try_ to detect country for an host where the whois server"
Expand Down

0 comments on commit f1e7abd

Please sign in to comment.