Thanks much for explaining!
But I think maybe you misunderstood me.
Your script works great except for when I try to do /ipadd Name IP.
If the IP is a duplicate IP, it echos the message that it is a duplicate however it will still write the duplicate IP to the ini file.