Ok, and what does it return if it's an IP? What about on networks that mask hosts? Where (for example in Unreal) it is .IP if it is a masked IP, others have a 'random' hex number, etc. It just seems utterly useless to me. I mean first off, it isn't practical. What happens if a new TLD is created? Say NewNation is officially recognized, and given .nn as the TLD. mIRC will of course have to return $null since it does not know of this TLD. The solution is to teach mIRC about this. That means mIRC is going to need something like a tlds.ini so that users can add new entries if new tlds are created.

So basically, that means we're building a 1 line script into mIRC (since it will have to have the tlds.ini that a script to do it would have anyway). So we have just added:

alias country {
return $readini(tlds.ini,tlds,$gettok($address($1,1),$numtok($address($1,1),46),46))
}

Is that really so hard it is worth doing internally?