XMPP↔IRC Bridge (badly written, here for posterity)