Permalink
Browse files

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

…lve domains were defined
  • Loading branch information...
Ratler committed Mar 2, 2012
1 parent 96ff0a6 commit 6b3310d5361c64290ec0748b3fa413eba6a5d917
Showing with 1 addition and 1 deletion.
  1. +1 −1 ripecheck.tcl
View
@@ -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 {

0 comments on commit 6b3310d

Please sign in to comment.