You can use is token.

if ($istok(nick1 nick2 nicketc,$nick,32)) {