Clean up irccat code a bit.