+countries

A long time ago, I did all my mushing on Elendor, which has lots of nifty code. One of many ways to show various stats about players was +countries; it shows a list of countries people are connecting from (Based on the country suffix in domain names) and how many from each.

I eventually wrote my own version for a game I was code wiz for, and that version eventually found its way to M*U*S*H.

It'd been a few years since I'd updated the list of known country codes, so I updated that last night, tweaked the code a bit to take advantage of things like attribute trees that didn't exist back when I wrote it, and bundled the code up for a public release.

Enjoy.

http://raevnos.pennmush.org/mushcode/countries-1.0.tar.gz

(When I last saw Walker, he was muttering something about using a IP geolocation database to get a more accurate accounting...)