A quick and more secure way to do this would be to use

Code:
if ($address($nick,2) = ADDRESS OF JohnDoe) { ... }