# Slixmpp: The Slick XMPP Library # Copyright (C) 2020 "Maxime “pep” Buquet " # This file is part of Slixmpp. # See the file LICENSE for copying permission. from slixmpp.xmlstream import ElementBase NS = 'urn:xmpp:occupant-id:0' class OccupantId(ElementBase): ''' An Occupant-id tag. An tag is set by the MUC. This is useful in semi-anon MUCs (and MUC-PMs) as a stable identifier to prevent the usual races with nicknames. Without occupant-id, getting the following messages from MUC history would prevent a client from asserting senders are the same entity: :: Some message Some correction ''' name = 'occupant-id' plugin_attrib = 'occupant-id' namespace = NS interface = {'id'}