diff options
author | mathieui <mathieui@mathieui.net> | 2020-11-27 19:57:23 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2020-11-27 20:02:03 +0100 |
commit | a245ba54bd117344a3651b57ca0694d894088b1a (patch) | |
tree | 3a01f6981aed2fae710e0029e4c40f8116f68f0f /slixmpp/plugins/xep_0421/occupant_id.py | |
parent | c86a6ad299a9b84e33ff8a1977d77fc1f23337ef (diff) | |
download | slixmpp-a245ba54bd117344a3651b57ca0694d894088b1a.tar.gz slixmpp-a245ba54bd117344a3651b57ca0694d894088b1a.tar.bz2 slixmpp-a245ba54bd117344a3651b57ca0694d894088b1a.tar.xz slixmpp-a245ba54bd117344a3651b57ca0694d894088b1a.zip |
Remove protoxep_occupantid
And fix some minor details in 0421 plugin.
Diffstat (limited to 'slixmpp/plugins/xep_0421/occupant_id.py')
-rw-r--r-- | slixmpp/plugins/xep_0421/occupant_id.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slixmpp/plugins/xep_0421/occupant_id.py b/slixmpp/plugins/xep_0421/occupant_id.py index 116bf2d9..4ee27a09 100644 --- a/slixmpp/plugins/xep_0421/occupant_id.py +++ b/slixmpp/plugins/xep_0421/occupant_id.py @@ -6,7 +6,7 @@ See the file LICENSE for copying permission. """ -from slixmpp import JID, Message +from slixmpp import JID, Message, Presence from slixmpp.plugins import BasePlugin from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins.xep_0421 import stanza @@ -25,6 +25,7 @@ class XEP_0421(BasePlugin): def plugin_init(self) -> None: # XXX: This should be MucMessage. Someday.. register_stanza_plugin(Message, OccupantId) + register_stanza_plugin(Presence, OccupantId) async def has_feature(self, jid: JID) -> bool: info = await self.xmpp['xep_0030'].get_info(jid) |