Port velour's irc library over

Title says it all.