You can clone with
Drupal-Strophe is a drupal module for using XMPP inside your web site. The hard work is done by Strophe, a thin wrapper, poem gives higher level tools.
Authentification is managed by Drupal, but users are virtual for Ejabberd, so nobody is friend of nobody, no roster, only automatic connection to muc.
Never forget, XMPP developer has only one friend : Psi