[ejabberd] another mod_muc question: duplicate nicks from same user

Daniel Dormont dan at greywallsoftware.com
Mon Apr 25 22:34:40 MSD 2011

Hi folks,

This question is about what happens when a certain user (same bare JID, different resource IDs) tries to join the same MUC as a participant, more than once. XEP-0045 says:

"However, if the bare JID <localpart at domain.tld> of the present occupant matches the bare JID of the user seeking to enter the room, then the service SHOULD allow entry to the user, so that the user has two (or more) in-room "sessions" with the same roomnick, one for each resource. If a service allows more than one occupant with the same bare JID and the same room nickname, it SHOULD route in-room messages to all of the user's resources and allow all of the user's resources to send messages to the room; it is up to the implementation to determine how to appropriately handle presence from the user's resources and how to route private messages to all or only one resource (based on presence priority or some other algorithm)."

My question is: does Ejabberd permit this? If so, does it have to be enabled in the config somewhere? I have done some brief experiments and it doesn't seem to work: instead the new joinee receives <error code='409' type='cancel'><conflict xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/><text xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'>That nickname is already in use by another occupant</text></error>


More information about the ejabberd mailing list