Rewrite XMPP client with erim client