Skip to content

Commit

Permalink
Fixed an error that occured when using .testripecheck and no top reso…
Browse files Browse the repository at this point in the history
…lve domains were defined
  • Loading branch information
Ratler committed Mar 2, 2012
1 parent 96ff0a6 commit 6b3310d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ripecheck.tcl
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b3310d

Please sign in to comment.