Quote:
and if the ip matches a different account then ban the one they are on.
I think that's not a good idea.
Do you mean matches an ip that's online at this moment?
In this case you perhaps ban family members (brother, father, mother ...).
If you check the ip versus a saved ip, you perhaps ban a player of a provider, that uses dynamic ip's.
You better log the account on login if that matches another ip and do the check if it is a double account by testing the two accounts manually.