summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2020-05-27 23:45:41 +0200
committerMaxime “pep” Buquet <pep@bouah.net>2020-05-27 23:45:41 +0200
commita29ce4b54774de050f352606d06bb111ecff4a65 (patch)
tree5d55cb9e2ce386273c188f840a3fb6ce713524f7
parent07b1a4c1cdbf8c7f8ea1d0771501d2a9cc2eb2a9 (diff)
downloadslixmpp-a29ce4b54774de050f352606d06bb111ecff4a65.tar.gz
slixmpp-a29ce4b54774de050f352606d06bb111ecff4a65.tar.bz2
slixmpp-a29ce4b54774de050f352606d06bb111ecff4a65.tar.xz
slixmpp-a29ce4b54774de050f352606d06bb111ecff4a65.zip
XEP-0421: Add shorthand to namespace
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0421/occupant_id.py3
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 ff7fcda5..116bf2d9 100644
--- a/slixmpp/plugins/xep_0421/occupant_id.py
+++ b/slixmpp/plugins/xep_0421/occupant_id.py
@@ -20,6 +20,7 @@ class XEP_0421(BasePlugin):
description = 'Anonymous unique occupant identifiers for MUCs'
dependencies = {'xep_0030', 'xep_0045'}
stanza = stanza
+ namespace = stanza.NS
def plugin_init(self) -> None:
# XXX: This should be MucMessage. Someday..
@@ -27,4 +28,4 @@ class XEP_0421(BasePlugin):
async def has_feature(self, jid: JID) -> bool:
info = await self.xmpp['xep_0030'].get_info(jid)
- return self.stanza.NS in info.get_features()
+ return self.namespace in info.get_features()