xep_0030: Use self directly as we're already in disco
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
037706552c
commit
e7872aaa29
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue