Code:
on *:text:!searchip <nick>:*:{
  if $hget(userips,$1) {    .msg $nick $1 $+ 's IPs are $v1  }
  elseif !$hfind(userips,$+(*,$1,*),0,w) {    .msg $nick No match found for $1  }
  else {
    var %a = 1, %b = $hfind(userips,$+(*,$1,*),0,w)
    .msg $nick Matches for $1 are:
    while %a <= %b {
      .timer 1 %a msg $nick $hfind(userips,$+(*,$1,*),%a,w)
      inc %a
    }
  }
}


Dejavu is kicking in with this topic, yet I'm unable to find the topic that I'm (almost) certain I gave almost identical replies to.