diff options
author | mathieui <mathieui@mathieui.net> | 2019-07-14 13:25:22 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2019-07-14 13:25:22 +0200 |
commit | 371ad20ca715c9b1cd0a4d34559758638f3e2427 (patch) | |
tree | 7c8633e96dfb9484f71e2dc97c8d2bc482cf9dc2 | |
parent | 5f49df6b56e64b34bd9e759887138e33cffbe4c9 (diff) | |
download | slixmpp-371ad20ca715c9b1cd0a4d34559758638f3e2427.tar.gz slixmpp-371ad20ca715c9b1cd0a4d34559758638f3e2427.tar.bz2 slixmpp-371ad20ca715c9b1cd0a4d34559758638f3e2427.tar.xz slixmpp-371ad20ca715c9b1cd0a4d34559758638f3e2427.zip |
Do not add disco#info for occupantid, it’s a server thing
-rw-r--r-- | slixmpp/plugins/protoxep_occupantid/occupantid.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/slixmpp/plugins/protoxep_occupantid/occupantid.py b/slixmpp/plugins/protoxep_occupantid/occupantid.py index 2c7827fb..7f4a9d4a 100644 --- a/slixmpp/plugins/protoxep_occupantid/occupantid.py +++ b/slixmpp/plugins/protoxep_occupantid/occupantid.py @@ -15,13 +15,9 @@ from slixmpp.plugins.protoxep_occupantid import stanza class XEP_OccupantID(BasePlugin): name = 'protoxep_occupantid' description = 'XEP-XXXX: Anonymous unique occupant identifiers for MUCs' - dependencies = {'xep_0030'} + dependencies = set() stanza = stanza def plugin_init(self): - self.xmpp['xep_0030'].add_feature('urn:xmpp:occupant-id:0') register_stanza_plugin(Message, stanza.OccupantID) register_stanza_plugin(Presence, stanza.OccupantID) - - def plugin_end(self): - self.xmpp['xep_0030'].remove_feature('urn:xmpp:occupant-id:0') |