Do not add disco#info for occupantid, it’s a server thing
This commit is contained in:
parent
5f49df6b56
commit
371ad20ca7
@ -15,13 +15,9 @@ from slixmpp.plugins.protoxep_occupantid import stanza
|
|||||||
class XEP_OccupantID(BasePlugin):
|
class XEP_OccupantID(BasePlugin):
|
||||||
name = 'protoxep_occupantid'
|
name = 'protoxep_occupantid'
|
||||||
description = 'XEP-XXXX: Anonymous unique occupant identifiers for MUCs'
|
description = 'XEP-XXXX: Anonymous unique occupant identifiers for MUCs'
|
||||||
dependencies = {'xep_0030'}
|
dependencies = set()
|
||||||
stanza = stanza
|
stanza = stanza
|
||||||
|
|
||||||
def plugin_init(self):
|
def plugin_init(self):
|
||||||
self.xmpp['xep_0030'].add_feature('urn:xmpp:occupant-id:0')
|
|
||||||
register_stanza_plugin(Message, stanza.OccupantID)
|
register_stanza_plugin(Message, stanza.OccupantID)
|
||||||
register_stanza_plugin(Presence, stanza.OccupantID)
|
register_stanza_plugin(Presence, stanza.OccupantID)
|
||||||
|
|
||||||
def plugin_end(self):
|
|
||||||
self.xmpp['xep_0030'].remove_feature('urn:xmpp:occupant-id:0')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user