This is quite a impressive feat. :).
Nice work. I was thinking of writing something like this and writing an mIRC based IRCD . :P.
Very well done :).
This could also be intergrated into an identication script for a bot, E.G. people going to your ip in their webserver and typing in their password, with a help file and some commands there too....
:)
/Whitey