Originally Posted By: wshs
Quite some complex code there, but does it handle IPs like 2001:570:: or 2001:570::f, etc?


Yes, that's what $iptype().expand does. The complexity is necessary because mIRC doesn't handle numbers as large as this accurately and will round them. Which is part of the reason why it's probably not a good idea to use longipv6 in the first place.