summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Cedilnik <nicolas.cedilnik@inheart.fr>2022-06-09 15:33:02 +0200
committerNicolas Cedilnik <nicolas.cedilnik@inheart.fr>2022-06-09 15:33:02 +0200
commit8eb8769862176858e0b7c7e97fdd1409d539b53e (patch)
tree35ad2fe8ecd5e91e489e001595d72167fee88c6e
parent5ceb48bbcd842962f8b8d206fddbce1dcfe7c069 (diff)
downloadslixmpp-8eb8769862176858e0b7c7e97fdd1409d539b53e.tar.gz
slixmpp-8eb8769862176858e0b7c7e97fdd1409d539b53e.tar.bz2
slixmpp-8eb8769862176858e0b7c7e97fdd1409d539b53e.tar.xz
slixmpp-8eb8769862176858e0b7c7e97fdd1409d539b53e.zip
XEP-0115: Make get_caps() async
-rw-r--r--slixmpp/plugins/xep_0115/static.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/slixmpp/plugins/xep_0115/static.py b/slixmpp/plugins/xep_0115/static.py
index 74f2beb8..4bf77d75 100644
--- a/slixmpp/plugins/xep_0115/static.py
+++ b/slixmpp/plugins/xep_0115/static.py
@@ -60,7 +60,7 @@ class StaticCaps(object):
return False
if node in (None, ''):
- info = self.caps.get_caps(jid)
+ info = await self.caps.get_caps(jid)
if info and feature in info['features']:
return True
@@ -134,7 +134,7 @@ class StaticCaps(object):
def get_verstring(self, jid, node, ifrom, data):
return self.jid_vers.get(jid, None)
- def get_caps(self, jid, node, ifrom, data):
+ async def get_caps(self, jid, node, ifrom, data):
verstring = data.get('verstring', None)
if verstring is None:
return None