you can use pnick, to get his nick with modes: @+NICK

Code:
if (@ isin $nick(#,NICK).pnick) {  }
if (+ isin $nick(#,NICK).pnick) {  }