Don't answer "bouncers" for IRC. It is an ugly hack. With XMPP the server MAY provide history, which makes it unreliable.