Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed an error that occured when using .testripecheck and no top reso…

…lve domains were defined
  • Loading branch information...
commit 6b3310d5361c64290ec0748b3fa413eba6a5d917 1 parent 96ff0a6
@Ratler authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ripecheck.tcl
View
2  ripecheck.tcl
@@ -590,7 +590,7 @@ namespace eval ::ripecheck {
} else {
::ripecheck::debug "Resolving..."
set htopdom [lindex [split $ip "."] end]
- if {[lsearch -exact $::ripecheck::topresolv($channel) "*"] != -1 || [lsearch -exact $::ripecheck::topresolv($channel) $htopdom] != -1} {
+ if {[info exists ::ripecheck::topresolv($channel)] && ([lsearch -exact $::ripecheck::topresolv($channel) "*"] != -1 || [lsearch -exact $::ripecheck::topresolv($channel) $htopdom] != -1)} {
::ripecheck::debug "Matched top resolve domain '$htopdom' for host '$ip' on '$channel'"
dnslookup $ip ::ripecheck::whoisFindServer $nick $channel "" testRipeCheck
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.