Bug fixes around OpenFire XMPP chat.