Specify an address.
If the address you specified matches the address of $newnick, your script won't ghost them.
Would be something like this;
on *:NICK:{
if ($address($newnick,4) == <the address from your other computer>) { return }
else {
if ($istok(nick1 nick2 nick3 nick4 etc,$newnick,32)) { nickserv ghost $newnick password }
}
}