Hm. The only country-specific info you get from IRC is from the user's host address. This $country identifier wouldn't work in the event that the person has an IP address that doesn't resolve to a host name or if they have a .com or .net address, which is very common.