$host and $ip, would be best to check both:
Code:
if ($nick == %nick.1 && $address =! $host && $address != $ip) {

Also note, if you are an IRC op or someone who is able to have a hostmask, there isn't an identifyer for this (at least, I sure don't know of one)