summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2018-06-30 22:47:04 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2018-07-01 01:29:31 +0100
commite7872aaa29258fb5c5abdfe441f0f9fab33f307c (patch)
tree16af76e2c5d3893a4f8b48ffd956fd5195d51c3a
parent037706552c68ec900475633af0474a7cdac29814 (diff)
downloadslixmpp-e7872aaa29258fb5c5abdfe441f0f9fab33f307c.tar.gz
slixmpp-e7872aaa29258fb5c5abdfe441f0f9fab33f307c.tar.bz2
slixmpp-e7872aaa29258fb5c5abdfe441f0f9fab33f307c.tar.xz
slixmpp-e7872aaa29258fb5c5abdfe441f0f9fab33f307c.zip
xep_0030: Use self directly as we're already in disco
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r--slixmpp/plugins/xep_0030/disco.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/slixmpp/plugins/xep_0030/disco.py b/slixmpp/plugins/xep_0030/disco.py
index daeee879..d06c5c51 100644
--- a/slixmpp/plugins/xep_0030/disco.py
+++ b/slixmpp/plugins/xep_0030/disco.py
@@ -303,13 +303,13 @@ class XEP_0030(BasePlugin):
domain = self.xmpp.boundjid.domain
if domain not in self.domain_infos:
- infos = [self.xmpp['xep_0030'].get_info(
+ infos = [self.get_info(
domain, timeout=timeout)]
- iq_items = await self.xmpp['xep_0030'].get_items(
+ iq_items = await self.get_items(
domain, timeout=timeout)
items = iq_items['disco_items']['items']
infos += [
- self.xmpp['xep_0030'].get_info(item[0], timeout=timeout)
+ self.get_info(item[0], timeout=timeout)
for item in items]
info_futures, _ = await asyncio.wait(infos, timeout=timeout)