If I remember, I'll take a look when I get home for the snippet. It should be somewhere around there.
If not, I might consider rewriting it.
I'm sure I have it still, though, as I still have the 'super-improved' version of my MUD on my home box. The one I never got to run