summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-06-30 23:03:47 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2018-07-01 01:29:31 +0100
commit9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2 (patch)
tree6bd4b21f3d4b206ec75970cb642082a71d5cc901
parente7872aaa29258fb5c5abdfe441f0f9fab33f307c (diff)
downloadslixmpp-9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2.tar.gz
slixmpp-9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2.tar.bz2
slixmpp-9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2.tar.xz
slixmpp-9740e93aeb3a8cd1403e7f920bd8ade93c47f9e2.zip
xep_0030: Pass kwargs down in find_identities
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0030/disco.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index d06c5c51..b89c7258 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -298,18 +298,19 @@ class XEP_0030(BasePlugin):
'cached': cached}
return self.api['has_identity'](jid, node, ifrom, data)
- async def find_identities(category, type_, domain=None, timeout=None):
+ async def find_identities(category, type_, domain=None, timeout=None,
+ **kwargs):
if domain is None:
domain = self.xmpp.boundjid.domain
if domain not in self.domain_infos:
infos = [self.get_info(
- domain, timeout=timeout)]
+ domain, timeout=timeout, **kwargs)]
iq_items = await self.get_items(
- domain, timeout=timeout)
+ domain, timeout=timeout, **kwargs)
items = iq_items['disco_items']['items']
infos += [
- self.get_info(item[0], timeout=timeout)
+ self.get_info(item[0], timeout=timeout, **kwargs)
for item in items]
info_futures, _ = await asyncio.wait(infos, timeout=timeout)