You can also use this:
Code:
if ($nick($chan,$nick,&~))